You are not logged in.

#1 2003-11-19 19:13:03

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Got 2.6test9 working, but can't use iptables.

I got my 2.6test 9 working, but when I try to run the script to share internet, y gives me an error, of some chains not identified. This script worked in 2.4
This is it.

#!/bin/sh

EXTIF=eth0
INTIF=eth1
IPTABLES=/usr/sbin/iptables
echo "1" > /proc/sys/net/ipv4/ip_forward

$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT 
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT 
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F

$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG

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

Is this a bug?, or do I have to compile extra modules?,


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#2 2003-11-19 20:24:34

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Got 2.6test9 working, but can't use iptables.

i assume you enable all the stuff that allows iptables use?


AKA uknowme

I am not your friend

Offline

#3 2003-11-19 21:11:26

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: Got 2.6test9 working, but can't use iptables.

I think so, I've read in other forum that this is a problem in 2.6test9


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

Board footer

Powered by FluxBB