Serve resources only to VPN clients.
Posted: Tue Dec 22, 2015 8:03 pm
I have a Debian Server setup with OpenVPN and apache running great. Currently the apache services are accessible to everyone. I want to restrict them to only be accessible to clients connected via the VPN.
Here is my incorrect UFW settings
Anyone have any idea how to accomplish what I'm trying to do? I feel like it should be pretty easy, but I have wasted a lot of time on this so far.
Here is my incorrect UFW settings
Code: Select all
Status: active
Logging: off
Default: deny (incoming), allow (outgoing)
New profiles: skip
To Action From
-- ------ ----
53 ALLOW IN Anywhere
60000:61000/udp ALLOW IN Anywhere
1194/udp ALLOW IN Anywhere
2812/tcp ALLOW IN Anywhere
22/tcp ALLOW IN Anywhere
80/tcp on tun0 ALLOW IN Anywhere
443/tcp on tun0 ALLOW IN Anywhere
80/tcp ALLOW IN 10.8.0.0/24
443/tcp ALLOW IN 10.8.0.0/24
80/tcp ALLOW IN 10.1.0.0/16
443/tcp ALLOW IN 10.1.0.0/16
53 ALLOW IN Anywhere (v6)
60000:61000/udp ALLOW IN Anywhere (v6)
1194/udp ALLOW IN Anywhere (v6)
2812/tcp ALLOW IN Anywhere (v6)
22/tcp ALLOW IN Anywhere (v6)
80/tcp on tun0 ALLOW IN Anywhere (v6)
443/tcp on tun0 ALLOW IN Anywhere (v6)
80/tcp ALLOW OUT 10.1.0.0/16
443/tcp ALLOW OUT 10.1.0.0/16
80/tcp ALLOW OUT Anywhere on tun0
443/tcp ALLOW OUT Anywhere on tun0
80/tcp ALLOW OUT Anywhere (v6) on tun0
443/tcp ALLOW OUT Anywhere (v6) on tun0