Skip to contentSkip to conversation

Iptables rules

DISCUSSION Alexis 1 participant 1 message Jan 15, 2004

lore
Share & tools
lore

Alexis

author
#0 lore raw

----- Original Message -----
From: "Alexis" <[email protected]>
To: "Minh Cao" <[email protected]>
Sent: Wednesday, January 14, 2004 10:08 PM
Subject: Re: Iptables rules

Quoted 5 lines

echo 1 > /proc/sys/net/ipv4/ip_forward

Quoted 11 lines

----- Original Message -----
From: "Minh Cao" <[email protected]>
To: <[email protected]>
Sent: Wednesday, January 14, 2004 10:04 PM
Subject: Help: Iptables rules

Quoted 4 lines

Hi,

I am new to iptables.
Please help me to create a rules, which allows everything in and out

both

Quoted 16 lines
Quoted 15 lines

interfaces.

What I have but not worked:
iptables -A FORWARD -i $EXTIF -o $INTIF -j ACCEPT
iptables -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT

iptalbles -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE

Thanks
Minh