Computing.Net > Forums > Linux > Flushing iptables

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Flushing iptables

Reply to Message Icon

Name: Chxta
Date: October 29, 2005 at 22:46:48 Pacific
OS: Ubuntu Linux 5.04
CPU/Ram: 400MHz/128MB
Comment:

Hi, please can anyone help me with a guide to flusing iptables for NAT?



Sponsored Link
Ads by Google

Response Number 1
Name: Shadowlight
Date: October 30, 2005 at 16:06:45 Pacific
Reply:

IPTABLES=/sbin/iptables
IP6TABLES=/sbin/ip6tables

echo " Default DROP ALL (ip4)"
$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP
$IPTABLES -P FORWARD DROP

echo " Flushing rules (ip4)"
$IPTABLES --flush
$IPTABLES --flush INPUT
$IPTABLES --flush OUTPUT
$IPTABLES --flush FORWARD
$IPTABLES --flush -t mangle
$IPTABLES --flush -t nat
$IPTABLES --delete-chain

echo " Default DROP ALL (ip6)"
$IP6TABLES -P INPUT DROP
$IP6TABLES -P OUTPUT DROP
$IP6TABLES -P FORWARD DROP

echo " Flushing rules (ip6)"
$IP6TABLES --flush
$IP6TABLES --flush INPUT
$IP6TABLES --flush OUTPUT
$IP6TABLES --flush FORWARD
$IP6TABLES --flush -t mangle
$IP6TABLES --flush -t nat
$IP6TABLES --delete-chain


0

Response Number 2
Name: Chxta
Date: November 2, 2005 at 10:41:08 Pacific
Reply:

Thanks a lot man. I really appreciate it.


0

Response Number 3
Name: GordonBe
Date: November 30, 2005 at 12:40:59 Pacific
Reply:

For tabe it will be enought
/sbin/iptables -F -t nat


rape movies
Mr.Gordon BE


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Flushing iptables

FC2/RH Samba iptables XP-printer??? www.computing.net/answers/linux/fc2rh-samba-iptables-xpprinter/25806.html

Coyote Linux www.computing.net/answers/linux/coyote-linux/27377.html

Can't print to my shared WinXP prin www.computing.net/answers/linux/cant-print-to-my-shared-winxp-prin/25906.html