got it working now :) need some advice

Pollywog pollywog@shadypond.com
Sat, 10 Jun 2000 23:46:55 +0000


On Sat, 10 Jun 2000, you wrote:
> On Sun, Jun 11, 2000 at 08:48:08AM +1000, Pollywog wrote:
> > I was trying to allow incoming SMTP connections and many types of
> > outgoing connections, but until I understand how to convert my ipchains
> > rules to iptables rules, I will stay with ipchains.  The HOWTO for packet
> > filtering didn't help much.
>
> Well, read it again then, it's not that hard. But try along these lines:
>
> iptables -A block -m state --state NEW -m tcp -p tcp --destination-port 22
> \ -j ACCEPT
> iptables -A block -m state --state NEW -m tcp -p tcp --destination-port 25
> \ -j ACCEPT
> iptables -A block -m state --state NEW -m tcp -p tcp --destination-port 80
> \ -j ACCEPT

Thanks, I found a script on linuxhelp.net and it was very easy to remove the 
rules that were blocking everything, and then block selectively.  The other 
scripts I tried were not so simple and I could not find the problem.

--
Andrew