Hello,
I need to restrict apache access from the public, only vpn clients should be able to access the webserver.
10.8.0.0/24 is the private network for openvpn.
I have iptables rules already configured but I need to shield apache from outside:
sudo iptables -L -n -v
Chain INPUT (policy ACCEPT 6727 packets, 1462K bytes)
pkts bytes target prot opt in out source destination
1 42 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:1194
40 6840 ACCEPT all -- tun+ * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
5906 969K ACCEPT all -- tun+ * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- tun+ eth0 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
5293 3157K ACCEPT all -- eth0 tun+ 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT 6324 packets, 3501K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * tun+ 0.0.0.0/0 0.0.0.0/0
Any idea?
Thanks.-