Tahoe_Strider
10-05-2002, 01:18 PM
Greetings everyone,
I have just recently entered the world of Linux(1week ago) and I'm still familiarizing myself to the environment. Unfortunately, time is not on my side as I have to configure a Linux router for a customer. I'm hoping you folks can help me with my dilema. Here's the scenario:
I've got a Mandrake machine w/ 2 NIC's(eth0 external eth1 internal). I need to run dynamic NAT for most hosts on the private network(masquerading?). However, some hosts require a public address(they have a class C subnet available). It was quite easy to do in the router that it's replacing, simply assign a public IP to the private IP address of the host. This would take precedence over dynamic NAT. Anyway, since I'm new to Linux, I believe through my reading(s) that I can do this w/ iptables, correct? And if so, how? Would I have to alias public IP's on eth0(IP ADDR ADD xxx.xxx.xxx.xxx eth0) then map the private IP to that(SNAT?). Not sure of the syntax though. Any help would be greatly appreciated. TIA folks! Looking forward to learning Linux here. Take care.
I have just recently entered the world of Linux(1week ago) and I'm still familiarizing myself to the environment. Unfortunately, time is not on my side as I have to configure a Linux router for a customer. I'm hoping you folks can help me with my dilema. Here's the scenario:
I've got a Mandrake machine w/ 2 NIC's(eth0 external eth1 internal). I need to run dynamic NAT for most hosts on the private network(masquerading?). However, some hosts require a public address(they have a class C subnet available). It was quite easy to do in the router that it's replacing, simply assign a public IP to the private IP address of the host. This would take precedence over dynamic NAT. Anyway, since I'm new to Linux, I believe through my reading(s) that I can do this w/ iptables, correct? And if so, how? Would I have to alias public IP's on eth0(IP ADDR ADD xxx.xxx.xxx.xxx eth0) then map the private IP to that(SNAT?). Not sure of the syntax though. Any help would be greatly appreciated. TIA folks! Looking forward to learning Linux here. Take care.