Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Opening port on L2TP VPN
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.

Opening port on L2TP VPN

solarvmsolarvm Member
edited December 2012 in Help

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

  • iptables -I INPUT -p tcp --dport *yourport* -j ACCEPT
  • WintereiseWintereise Member
    edited December 2012

    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

Sign In or Register to comment.