Destination Nat
Im running at red hat 9 and iptables 1.2.7
im trying to direct web traffic to the web server on the inside.
is [ iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0
-j DNAT --to 5.6.7.8:8080 ] right?
thanks
john
Quoted 9 lines · On Fri, 2004-05-28 at 09:46, [email protected] wrote:
Im running at red hat 9 and iptables 1.2.7
im trying to direct web traffic to the web server on the inside.
is [ iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0
-j DNAT --to 5.6.7.8:8080 ] right?thanks
john
That will direct all 80 /tcp packets for all addresses the station listens on to 5.6.7.8:8080? Is that what you want or do you want to redirect packets with a specific destination address?
If the public Internet address is not an IP address bound to the NAT gateway, then you will need to add it, typically:
ip address add 1.1.1.2/24 dev eth0 brd +
Finally, NAT is not access control. Once the packeted hits the filter chain, you will need something, default policy or, preferable a rule, which allows access to 5.6.7.8 on TCP port 8080. Hope that helps - John
Signature · 9 lines
John A. Sullivan III Chief Technology Officer Nexus Management +1 207-985-7880 [email protected] --- If you are interested in helping to develop a GPL enterprise class VPN/Firewall/Security device management console, please visit http://iscs.sourceforge.net
Iptables/Iproute2/Load-Balancing 2 Broadband Connections
Has anyone on this list successfully load-balanced 2 broadband connections using one linux routerbox with 3 NICS.
The setup I want to try is:
NIC1 - ISP 1 DSL PPPOE connection
NIC2 - ISP 2 DSL PPPOE connection
NIC3 - GATEWAY TO LAN
The LAN clients all have static IP addresses.
I don't want to manually assign each LAN client to one ISP connection or the other. I would like to set up the routerbox to take care of all balancing tasks to optimize use of bandwidth provided by the two DSL accounts.
I have spoken with tech. support at roaringpenguin.com and they confirm that their dsl connection client software is capable of maintaining multiple broadband connections.
I just can't find anyone who's actually done it before and knows something about how to route the connections in conjunction with iptables rules. There's some pressure involved in trying this as, the network is on demand 6 days a week. So I won't have much time to run tests and try different configurations. Currently there are two LANs built around the 2 different dsl connections; however, it is becoming more and more apparent that the office will function much more efficiently by joining the 2 LANs into one.
Any/all guidance is greatly appreciated.
Thanks for your time.
Mike