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

Recommended Posts

Hello all,

 

I am trying to find a way to make my home server (https, ftp, ...) accessible through the internet, while being connected to AirVPN.

 

The OpenVPN client on my DD-WRT router is properly configured and connects fine. All the computers behind the router are available to browse the web and show the correct AirVPN IP adress. The server stays accessible from inside the private network .

 

My problem is that I can't seem to find a way to make the server accessible from the internet, through my AirVPN WAN IP.

For example, I have created a port forward on the AirVPN site from port 14645 to 443. My router is set to forward port 443 to the server's private IP, but this configuration doesn't work...

 

Can somebody tell me how to properly setup port forwarding so that I can access my server through my AirVPN public IP ?

 

 

Share this post


Link to post

Hi, thanks for your quick response.

I forwarded the port to the web server private IP address in the DD-WRT Nat settings page.

 

Do I have to add the iptables rules mentioned in the post you linked as well ? In  that case do I leave the forward rules on in the DD-WRT Nat settings, or should I remove them ?

 

And also I am guessing I have to add these 4 iptables rules for each port I need to redirect (6 or 7 = 24-28 lines) ?

Share this post


Link to post

Hi, thanks for your quick response.

I forwarded the port to the web server private IP address in the DD-WRT Nat settings page.

 

Do I have to add the iptables rules mentioned in the post you linked as well ? In  that case do I leave the forward rules on in the DD-WRT Nat settings, or should I remove them ?

 

Hello,

 

yes, you need the iptables rules. The forwarded ports in the web interface settings should be deleted, in order to avoid to expose your system to correlation attacks. You need them only when you want to forward ports when the router OpenVPN client is not running.

 

And also I am guessing I have to add these 4 iptables rules for each port I need to redirect (6 or 7 = 24-28 lines) ?

 

Assuming that you need to forward both UDP and TCP, that's correct.

 

Kind regards

Share this post


Link to post

Hello

 

Thanks a lot for your help.

Turns out there is a --dports directive for iptables which allows for multiple port adressing - and saving many lines

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...