More than one IP-Addresses on an ethernet interface
Hello
I want configure a Firewall with ipchains for a box with one external (Internet) and one internal ethernet cards. On the internal network I use two webserver machines. So I should configure two IP-Addresses on the external interface to point to the different webservers. 1. How do I configure two IP-Addresses on one ethernet interface? 2. How do I configure the rule with ipchains to forward the http protocol to the corresponding webserver?
Thanks in advance Felix
Hi,
I want configure a Firewall with ipchains for a box with one external (Internet) and one internal ethernet cards. On the internal network I use two webserver machines. So I should configure two IP-Addresses on the external interface to point to the different webservers. 1. How do I configure two IP-Addresses on one ethernet interface?
Use alias devices. ifconfig eth0:1 10.0.0.1 ifconfig eth0:2 10.0.0.2 Bye, Thomas -- Thomas Biege, SuSE GmbH, Schanzaeckerstr. 10, 90443 Nuernberg E@mail: thomas@suse.de Function: Security Support & Auditing "lynx -source http://www.suse.de/~thomas/thomas.pgp | pgp -fka" Key fingerprint = 09 48 F2 FD 81 F7 E7 98 6D C7 36 F1 96 6A 12 47
Felix.Ohmberger@conceptnet.ch wrote: Hi!
I want configure a Firewall with ipchains for a box with one external (Internet) and one internal ethernet cards. On the internal network I use two webserver machines. So I should configure two IP-Addresses on the external interface to point to the different webservers. 1. How do I configure two IP-Addresses on one ethernet interface? 2. How do I configure the rule with ipchains to forward the http protocol to the corresponding webserver? Well, imho this can not be done with ipchains, because -j REDIRECT will redirect packets only to a local socket. So, I suggest to have a look at: http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO-6.html#ss6.8
HTH Please correct me, if I'm wrong. :-) best regards, Rainer Link -- Rainer Link, eMail: linkra@fh-furtwangen.de, WWW: http://rainer.w3.to/ Student of Communication Engineering/Computer Networking, University of Applied Sciences,Furtwangen,Germany,http://www.ce.is.fh-furtwangen.de/
participants (3)
-
Felix.Ohmberger@conceptnet.ch
-
Rainer Link
-
Thomas Biege