[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Port Forwarding



I use...
train:/etc/network# cat /etc/network/options 
ip_forward=yes

as it dose not depend on the sysctl pkg.

--- Marcelo Ravilet <mravilet@netlinux.cl> wrote:
> check your file /etc/sysctl.conf
> 
> must be in 1 ( net.ipv4.ip_forward = 1)
> 
> for check before sysctl -p
> 
> 
> Saludos
> Marcelo Ravilet
> 
> ----- Original Message ----- 
> From: "Mike Mestnik" <cheako911@yahoo.com>
> To: "Dominique Benz" <sauglatt@gmx.ch>;
> <debian-firewall@lists.debian.org>
> Sent: Wednesday, February 25, 2004 1:21 PM
> Subject: Re: Port Forwarding
> 
> 
> > Check /proc/sys/net/ipv4/ip_forward again.  Type "echo 1 >
> > /proc/sys/net/ipv4/ip_forward".
> >
> > --- Dominique Benz <sauglatt@gmx.ch> wrote:
> > > Hello List!
> > >
> > > I'm a little new in the world of iptables and could need some advice
> > > concerning a simple Port Forwarding. I created s basic rule set as
> > > described
> > > in common howtos and the internet:
> > >
> > > # iptables -A FORWARD -i eth0 -p tcp --dport port -j ACCEPT
> > > # iptables -t nat -A PREROUTING -i eth0 -p tcp --dport port -j DNAT
> --to
> > > local_ip:port
> > >
> > > My FORWARD CHAIN contains two further entries (they actually don't
> > > affect
> > > the above rules):
> > >
> > > # iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
> > > # iptables -A FORWARD -i eth0 -o eth1 -m state --state
> > > ESTABLISHED,RELATED
> > > -j ACCEPT
> > >
> > >
> > > Although I have ip_forwarding enabled and ifconfig seems to be ok,
> the
> > > Port
> > > Forwarding doesn't work with these rule set and there is no firewall
> on
> > > local_ip.
> > >
> > > The strange thing now is, that I actually made a working Port
> Forwarding
> > > earlier which I forgot to backup, d'oh! Since reboot I have
> difficulties
> > > setting up the correct rules again.
> > >
> > > I probably used to have an older iptables version installed when no
> > > problems
> > > occurred, but I think this doesn't matter anyway. Current Version:
> 1.2.8
> > >
> > > Anyone help?
> > >
> > > Greets!
> > >
> > > Dominique Benz
> > >
> > >
> > >
> > >
> >
> > > ATTACHMENT part 2 application/ms-tnef name=winmail.dat
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail SpamGuard - Read only the mail you want.
> > http://antispam.yahoo.com/tools
> >
> >
> > -- 
> > To UNSUBSCRIBE, email to debian-firewall-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> >
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools



Reply to: