New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Opening port on L2TP VPN
Hello,
I used this tutorial: https://raymii.org/s/tutorials/IPSEC_L2TP_vpn_with_Ubuntu_12.04.html
to setup L2TP VPN on my KVM box.
How can I open the port for my torrent client so I can reach it from the VPN IP.
Thanks
Comments
Add a src directive if you want to lock it down a bit.
This is not really what I'm looking for. I'm trying to FORWARD the port to the VPN, so when I for example open a webserver, I can visit that webserver from the VPN.
VISITOR (Port80) ------> VPN ------> PC (Port80)
I know I can use NGINX but this is just an example.
Thanks
iptables -t nat -A PREROUTING -p tcp -d 178.209.50.200 --dport 1338 -j DNAT --to-destination 172.16.1.30
iptables -A FORWARD -p tcp -d 178.209.50.200 --dport 1338 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
did it