Welcome, Guest. Please login or register.
Did you miss your activation email?
Friday 19 June 2026, 02:21:05 am

Login with username, password and session length

Get the new Updates directly from Endian  HERE
14262 Posts in 4377 Topics by 6521 Members
Latest Member: support@nj-tek.com
Search:     Advanced search
+  EFW Support
|-+ 
| |-+  General Support
| | |-+  IPTables and multiple WAN IP addresses
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: IPTables and multiple WAN IP addresses  (Read 13003 times)
OCS

Offline Offline

Posts: 1


« on: Saturday 07 July 2012, 10:01:40 am »

I'm currently using a router with DD-WRT but would like to move to a box with Endian on it.  I have two servers behind the router each of which need to be accessible over port 80 and a few other ports so I set up an IPTables rule to add another WAN IP address and forward that traffic to the second server:

Code:
/usr/sbin/ip addr add <External IP Address 2>/29 dev vlan1

/usr/sbin/iptables -t nat -I POSTROUTING 1 -p all -s <Internal IP Address 2> -j SNAT --to <External IP Address 2>

/usr/sbin/iptables -t nat -A PREROUTING -p tcp -d <External IP Address 2> --dport 80 -j DNAT --to-destination <Internal IP Address 2>:80
/usr/sbin/iptables -I FORWARD -p tcp -d <Internal IP Address 2> --dport 80 -j ACCEPT

Is this possible with Endian? 

Thanks.
Logged
kashifmax

Offline Offline

Gender: Female
Posts: 108


« Reply #1 on: Wednesday 18 July 2012, 09:16:38 pm »

In simple words, you mean port forwarding ? Yes it's possible...
Logged
trymes

Offline Offline

Posts: 36


« Reply #2 on: Friday 03 August 2012, 12:14:23 am »

He also means multiple WAN IP addresses, and that should be possible, too.

Tom
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.015 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com