Skip to contentSkip to conversation

iptables -F

DISCUSSION Shannon Roddy 2 participants 2 messages Aug 9, 2005 – Aug 10, 2005

lore
Share & tools
lore
#0 lore raw

Can someone help me out here? I figured that iptables -F would flush all tables including the nat table, but it appears to not flush it. I have to explicitly use iptables -t nat -F to fllush the NAT rules.

Thanks,
Shannon

#1 lore raw

Shannon,

when you use the iptables command and no specify the table, it assumes that the table is filter, so "iptables -t filter -F" is the same as "iptables -F". That's why you need to specify the table to flush the nat, like flush mangle, etc...

best regards,

x-arnie

Quoted 9 lines · Shannon Roddy

Can someone help me out here? I figured that iptables -F would flush all tables including the nat table, but it appears to not flush it. I have to explicitly use iptables -t nat -F to fllush the NAT rules.

Thanks,
Shannon