Hi
Situation:
Opnevpn server running on linux.
public ip address: 1.2.3.4
apache running and listening on 1.2.3.4:80
iptables blocking all but openvpn port 1194
iptables -F
iptables -X
iptables -Z
iptables -P FORWARD DROP
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
iptables -A INPUT -p udp -m udp --dport 1194 -j ACCEPT
iptables -A INPUT -j REJECT --reject-with icmp-host-prohibited
vpn server network configuration
server 10.8.0.0 255.255.255.0
and ip for client: ifconfig-push 10.8.0.9 10.8.0.10
What I want to achieve:
I want to access 1.2.3.4:80 only using vpn connection.
I think that things to be done are:
- add push "route 87.119.2.146 255.255.255.255" to openvpn config
- allow 10.8.0.9 to access 80 port in iptables
but what else?
Best regards
bchojnicki