OpenVpn adjusting.

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
morkovkin
OpenVpn Newbie
Posts: 1
Joined: Thu Oct 27, 2022 12:16 pm

OpenVpn adjusting.

Post by morkovkin » Thu Oct 27, 2022 12:25 pm

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!

Post Reply