Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 30 November 2024, 11:00:58 pm

Login with username, password and session length

Download the latest community FREE version  HERE
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  IPTables and multiple WAN IP addresses
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: IPTables and multiple WAN IP addresses  (Read 10005 times)
OCS
Jr. Member
*
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
Sr. Member
****
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
Full Member
***
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.078 seconds with 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com