Jump to content
Not connected, Your IP: 34.204.169.76
cm0s

Website Behind VPN

Recommended Posts

iptables -t nat -A PREROUTING -i tun0 -p tcp --dport 51206 -j DNAT --to 192.168.1.105:80

iptables -t nat -A PREROUTING -i tun0 -p tcp --dport 51207 -j DNAT --to 192.168.1.105:443

 

You will need 2 high ports if you wish to use both 80 and 443 local ports.

 

Those 2 don't make sense since they will never match - your tun0 IP will be 10/8 and not 94.100.23.163:

 

iptables -I FORWARD -i tun0 -p udp -d 94.100.23.163 --dport 51206 -j ACCEPT # forward airvpn port
iptables -I FORWARD -i tun0 -p tcp -d 94.100.23.163 --dport 51206 -j ACCEPT # forward airvpn port


Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees.

Share this post


Link to post

Not sure what you meant in your other part of the post, but in order to have SSL running

you don't have to wait for any verification from your reseller (Namecheap etc.) and you can

simply authorize your domain's SSL certificate using MX, TXT or HTTP methods.

All of the methods are supported with EFF sponsored https://LetsEncrypt.org CA.

 

If you still want to avoid using high ports for your target audience, you have 2 options:

1) Running a VPS with a public IPv4, where the VPN client will run and forward it to your (home) backend

2) Running a Tor hidden service.


Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees.

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

×
×
  • Create New...