Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] IP masquerading problem
- To: tlug@example.com
- Subject: Re: [tlug] IP masquerading problem
- From: Ray Mancy <0721265801@example.com>
- Date: Thu, 04 Apr 2002 22:41:54 -0800
- Content-transfer-encoding: 7bit
- Content-type: text/plain; charset=us-ascii; format=flowed
- References: <000901c1dbbb$46594f70$1500a8c0@example.com> <000001c1dd11$3c055710$1500a8c0@example.com> <3CAD3350.5040608@example.com> <20020405150619.25027f8b.gstewart@example.com>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
Cheers, I did actually try taking the $IPTABLES -P FORWARD ROP out of it, but it didnt make a difference, I guess I had to add the other lines. Thanks again Ray Godwin Stewart wrote: > On Thu, 04 Apr 2002 21:17:04 -0800, Ray Mancy <0721265801@example.com> > wrote to tlug@example.com: > > >>#!/bin/sh >>IPTABLES=/usr/local/sbin/iptables >>EXTIF="eth1" >>INTIF="eth0" >>$IPTABLES -P FORWARD DROP >>$IPTABLES -t nat -A POSTROUTING -o $EXTIF -s 192.168.1.3 -j MASQUERADE >>$IPTABLES -A INPUT -i $EXTIF -m state --state NEW,INVALID -j DROP >>$IPTABLES -A FORWARD -i $EXTIF -m state --state NEW,INVALID -j DROP >> > > You're dropping everything going through the FORWARD chain of the filter > table. Your default destination is "DROP" and on top of that you're DROPping > stuff coming from the outside which is new. You should explicitly allow > everything else you want FORWARDed, like: > > $IPTABLES -A FORWARD -i $EXTIF -p tcp --sport 80 -j ACCEPT > $IPTABLES -A FORWARD -o $EXTIF -p tcp --dport 80 -j ACCEPT > > ...if you want to allow http traffic through the box, or > > $IPTABLES -A FORWARD -i $EXTIF -p udp --sport 53 -j ACCEPT > $IPTABLES -A FORWARD -i $EXTIF -p tcp --sport 53 -j ACCEPT > $IPTABLES -A FORWARD -o $EXTIF -p udp --dport 53 -j ACCEPT > $IPTABLES -A FORWARD -o $EXTIF -p tcp --dport 53 -j ACCEPT > > ...if you want to allow other boxes to do DNS. > > Same rules apply to ports 25 for smtp, 110 for pop3, 443 for https, 22 for > ssh etc... > > >
- References:
- [tlug] partiton
- From: hatsuhiro
- Re: [tlug] partiton
- From: hatsuhiro
- [tlug] IP masquerading problem
- From: Ray Mancy
- Re: [tlug] IP masquerading problem
- From: Godwin Stewart
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] IP masquerading problem
- Next by Date: Re: [tlug] Generating documentation from comments from source code
- Previous by thread: Re: [tlug] IP masquerading problem
- Next by thread: AW: [tlug] McLennan banned
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links