Jump to content
Not connected, Your IP: 18.119.139.50
Sign in to follow this  
rikkert

Forward port on DD-WRT besides AirVPN

Recommended Posts

I have successfully set up an AirVPN client in my DD-WRT router; every connected device now connects to the internet via AirVPN.

 

However, I would like to access a single port on a server I have running from outside my network.

 

My IPTABLES rules are as follows:

 

#All traffic trough VPN tunnel
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
iptables -I INPUT -i tun0 -j REJECT
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
#Forward port [port] for server
iptables -t nat -I PREROUTING -p tcp -i br0 --dport [port] -j DNAT --to [server IP]:[port]
iptables -I FORWARD -p tcp -d [server IP] --dport [port] -j ACCEPT
 
Unfortunately I can't connect to the server from outside. The DD-WRT firewall log shows drops for the port [port].
 
Could anyone help me out?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   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...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...