November 24, 2024, 02:09:09 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: iptables interface eth0:1 does not work  (Read 7576 times)

Offline anil_garg5

  • Linux Learner
  • ***
  • Posts: 71
iptables interface eth0:1 does not work
« on: August 25, 2004, 04:25:48 AM »
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.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
iptables interface eth0:1 does not work
« Reply #1 on: August 25, 2004, 12:48:36 PM »
I have never used ip aliasing but heard that it is not standard in 2.4.x kernel or higher ..
it requires the module to be loaded if done during kernel setup ..

/sbin/insmod /lib/modules/`uname -r`/ipv4/ip_alias.o

can be used to load module !!

I think that is the problem !!

Offline anil_garg5

  • Linux Learner
  • ***
  • Posts: 71
iptables interface eth0:1 does not work
« Reply #2 on: August 26, 2004, 01:27:48 PM »
when I type this command    
#/sbin/insmod /lib/modules/`uname -r`/ipv4/ip_alias.o
it show ip_alias.o not found


I am using rh 8/9. but i am unable to locate ip_alias.o file
#locate ip_alias.o

how can I build this module? it is reqd.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
iptables interface eth0:1 does not work
« Reply #3 on: August 27, 2004, 06:45:35 AM »
It is not found then it is not set as module ! you can make it available by recompiling the kernel !