Skip to contentSkip to conversation

Problem with -i

DISCUSSION Kabango Malewezi 2 participants 2 messages Nov 20, 2003

lore
Share & tools
lore
#0 lore raw

Folks, can you help me with the following problem?

I'd like to set a policy to accept all packets from etho on network 192.168.0.0/24 but when I do this:

iptables -A INPUT -j ACCEPT -i eth0 -s 192.168.0.0/24

the command is accepted. But when I do

iptables -L I get

Chain Input (policy ACCEPT)
target prot opt source destination
ACCEPT all --- 192.168.0.0/24 anywhere

My question is WHY don't I see the eth0 anywhere?

Kabango

#1 lore raw
Quoted 9 lines · Kabango Malewezi

Folks, can you help me with the following problem?

I'd like to set a policy to accept all packets from etho on network 192.168.0.0/24 but when I do this:

iptables -A INPUT -j ACCEPT -i eth0 -s 192.168.0.0/24

the command is accepted. But when I do

Quoted 7 lines

iptables -L I get

Chain Input (policy ACCEPT)
target prot opt source destination
ACCEPT all --- 192.168.0.0/24 anywhere

My question is WHY don't I see the eth0 anywhere?

man iptables In particular the switches -v and -x etc.. iptables -vn -L INPUT lists the details you wanted to see. Cheers,
Michael