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

[SOLVED]Port forwarding / Iptables / Tomato

Recommended Posts

Guest

Dear all,

 

I have some troubles to make the port forwarding working. Here is my setup:

 

[FAI BOX]----->[TOMATO ROUTER]---->[LOCAL WEB SERVER, and several PCs]

 

The FAI BOX is forwarding the 443 port to the tomato router.

 

This router is connecting to airvpn. The connection works perfectly (WAN IP and web surfing are OK).

 

I am using the following iptables rules (Administration/Scripts/Firewall) in order to forward wan request coming on tomato router through port 80 to the local web server:

 

iptables -I FORWARD -i br0 -o tun12 -j ACCEPT
iptables -I FORWARD -i tun12 -o br0 -j ACCEPT
iptables -I INPUT -i tun12 -j REJECT
iptables -t nat -A POSTROUTING -o tun12 -j MASQUERADE
iptables -t nat -I WANPREROUTING -p tcp --dport 80 -j DNAT --to WEBSERVERIP:80
iptables -I FORWARD -p tcp -d WEBSERVERIP --dport 80 -j ACCEPT

 

On my cellphone (not connected to my lan) i am trying to connect to my webserver using:

 

http://WAN_IP:PORT

 

I have configured on AIRVPN web site a port forwarding: PORT-> 80 (TCP & UDP).

 

While I can access to my webserver from inside my LAN, I cannot from WAN.

 

Any suggestion would be welcomed

 

EDIT:

I solved my issue by switching to ASUS MERLIN WRT following this thread.

 

 

Share this post


Link to post

I don't know this counts are a resolution, the solution is to change platforms... Mod - can you remove the original post?

 

Its indexed and not helpful to the solution.

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