Hello,
I am new to iptables but comfortable with Linux.
I setup a RHAS3 with 2 NICs, one connected to internet with real IP
and the other connected to my local LAN. I have modified the
ip_forwarding file content and issued the iptables line below
iptables -t nat -A -POSTROUTING -s internal.ip/internal.mask -o ethx
-j SNAT --to-source external.ip
which allowed my to allow my local users use this box as a gateway to
internet.
My next topic is how to set up web/mail/ftp etc servers locally, and
by assigning other real IP's and making proper forwarding so that
these servers would server both local and non-local internet users.
In summary here is what I neet to do but have no clue ;
1 - assigning several secondary IP's onto the public NIC
2 - issuing apropriate iptables command so that the traffic of each of
these secondary real IP's would be forwarded directly to seperate
local IP's, regardless of the port etc. details of the traffic.
Regards thanks for all kind of help.
|