Jump to content
TorGuard
  • 0

Help with portforward with OpenVPN

Rate this question


odonel

Question

I opened the ports in management and added the following rules in dd-wrt firewall

 

iptables -I FORWARD -i tun1 -p udp -d 192.168.2.95 --dport 3395 -j ACCEPT
iptables -I FORWARD -i tun1 -p tcp -d 192.168.2.95 --dport 3395 -j ACCEPT
iptables -t nat -I PREROUTING -i tun1 -p tcp --dport 3395 -j DNAT --to-destination 192.168.2.95
iptables -t nat -I PREROUTING -i tun1 -p udp --dport 3395 -j DNAT --to-destination 192.168.2.95
 
what am I doing wrong ? It does not work   when I try it with NYC IP that I am connected to  107.182.x.x
Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

 

I opened the ports in management and added the following rules in dd-wrt firewall

 

iptables -I FORWARD -i tun1 -p udp -d 192.168.2.95 --dport 3395 -j ACCEPT
iptables -I FORWARD -i tun1 -p tcp -d 192.168.2.95 --dport 3395 -j ACCEPT
iptables -t nat -I PREROUTING -i tun1 -p tcp --dport 3395 -j DNAT --to-destination 192.168.2.95
iptables -t nat -I PREROUTING -i tun1 -p udp --dport 3395 -j DNAT --to-destination 192.168.2.95
 
what am I doing wrong ? It does not work   when I try it with NYC IP that I am connected to  107.182.x.x

 

 

Hi - the rules look OK, just check a few things below though:

 

1) Are you connecting to the correct cipher/protocol as mentioned in the activation email ?

2) Is the tun adapter really tun1, it can also be tun0 - you need to check that.

3) Make sure the LAN address is static to the device your trying to access remotely.

 

Regards

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...