Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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.