Page 1 of 1

OpenVpn adjusting.

Posted: Thu Oct 27, 2022 12:25 pm
by morkovkin
Hi! I have recently started to sort out concerning openvpn.
I had a task to limit possibility of connecting to the network SSH only from my IP-adress and allow access to http and https. So I made it like this:

iptables -A INPUT -s MY IP -p tcp --destination-port 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -m state --state NEW -j ACCEPT

After that I have installed OpenVPN (angristan from GitHub). Just for the record, my ip is not static.

How can I represent work of my VPN using traceroute or mtr?
How can I adjust VPN so that traffic to the network 172.17.0.0/24 fell into the vpn tunnel?

Thank you in advance!