Re: iptables interface eth0:1 does not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





--On Friday, December 06, 2002 10:16:19 AM -0500 Hidemasa Yamakawa <yamakawa@TCSAmerica.com> wrote:

Hi, all,

I assigned 2 ip address to one ethernet card.
One is eth0 and another is eth0:1.
INPUT and FORWARD policy is DROP
When I input
iptables -A  INPUT -i eth0:1 -j ACCEPT
I got warning
Warning: wierd character in interface `eth0:1' (No aliases, :, ! or *).
and no packet come through this interface.
Kindly advice please.

You are getting a lot of questionable advice about how to solve this problem.

iptables/NetFilter do not recognize the old alias notation. Rather than "-i eth0:1", you want "-i eth0 -d <ip address of eth0:1>". So for example, if eth0:1 has IP address 192.168.12.14, then your rule is:

iptables -A INPUT -i eth0 -d 192.168.12.14 -j ACCEPT

-Tom
--
Tom Eastep \ Shorewall - iptables made easy
AIM: tmeastep \ http://shorewall.sf.net
ICQ: #60745924 \ teastep@shorewall.net



--
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux