How can i forward Ports?

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.

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

Post Reply
NothingTV
OpenVpn Newbie
Posts: 2
Joined: Fri Nov 27, 2015 5:59 pm

How can i forward Ports?

Post by NothingTV » Fri Nov 27, 2015 6:30 pm

Hello,

i installed the OpenVPN Script from Nyr which works perfectly, now i want to forward Gameserver Ports like '25565', '7777', etc. for 2 Clients (alternately), but i don't understand iptables. I tried this:

Code: Select all

iptables -t nat -A PREROUTING -d ip.from.my.droplet -p tcp --dport 25565 -j DNAT --to-dest 10.8.0.3:25565
iptables -t nat -A POSTROUTING -d 10.8.0.3 -p tcp --dport 25565 -j SNAT --to-source 10.8.0.3
but it won't work.

Any ideas how i can forward Ports to VPN Client

My System runs on Ubuntu 14.04 x64

i hope someone can help me

NothingTV
OpenVpn Newbie
Posts: 2
Joined: Fri Nov 27, 2015 5:59 pm

Re: How can i forward Ports?

Post by NothingTV » Tue Jan 12, 2016 6:16 pm

Srly? No one can help me?

Post Reply