Hello,
I'M trying to do the same config!
Here is my incorrect setup to close apache access:
22 ALLOW Anywhere
1194/udp ALLOW Anywhere
80/tcp ALLOW 10.8.0.0/24 »» this rule should be fine in order to allow apache access for openvpn clients but ufw block the traffic.
Also I did this steps:
in /etc/default/ufw conf:
DEFAULT_FORWARD_POLICY="ACCEPT"
in /etc/ufw/before.rules conf:
# START OPENVPN RULES
# NAT table rules
*nat
:POSTROUTING ACCEPT [0:0]
# Allow traffic from OpenVPN client to eth0
-A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
COMMIT
# END OPENVPN RULES
Syslog:
Any idea please?
I need just close apache access for public, only ovpn connected clients should be able to access.