Betr.: [CentOS] Multiple IP Addresses in a single NIC

Fri Jun 24 14:32:16 UTC 2005
Joao Medeiros <joao.c.medeiros at gmail.com>

I've made the changes to my Firestarter rules as suggested by Alexander and
I can now access my web server running as a virtual host from my desktop.
Here's what I had to change:-

In my /etc/firestarter/user-pre file I've added an entry like:

# eth1:1 is the alias on top of eth1
$IPT -A INPUT -i eth1 -j ACCEPT

Thanks for your help folks.

--JM


-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf
Of Alexander Dalloz
Sent: 24 June 2005 13:28
To: CentOS mailing list
Subject: RE: Betr.: [CentOS] Multiple IP Addresses in a single NIC

Am Fr, den 24.06.2005 schrieb Joao Medeiros um 14:19:

> I found what the problem is... I have Firestarter installed and If I 
> turn it off I can access the web site with the ip alias. I wouldn't 
> like to have to turn the firewall off. Any thoughts?

> --JM

iptables isn't able to handle aliased device names (like eth0:0), so you
will have to use IPs in your rules rather than device names (like -i eth0 -j
ACCEPT).

Alexander


--
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal
statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon
with kernel 2.6.11-1.27_FC2smp Serendipity 14:25:57 up 2 days, 22:40, load
average: 0.06, 0.14, 0.10