Mailinglist Archive: opensuse-security (375 mails)

< Previous Next >
SuSEfirewall2-custom rules don't work
  • From: Andreas Meier <a.meier.home@xxxxxxx>
  • Date: Thu, 26 Sep 2002 14:16:01 +0200
  • Message-id: <131290455.20020926141601@xxxxxxx>
Hi all -

1)
I am running the Firewall2 on Suse 8.0 + Squid/2.4.STABLE6.
I wan't to allow the following ports open en forward to 192.168.0.4,but the firewall don't
allow.
So, whats wrong ?


cut from /etc/sysconfig/scripts/SuSEfirewall2-custom
iptables -A forblock -i eth1 -p tcp --dport 4661 -j ACCEPT
iptables -A forblock -i eth1 -p tcp --dport 4662 -j ACCEPT
iptables -A forblock -i eth1 -p udp --sport 4665 -j ACCEPT
iptables -A PREROUTING -t nat -p tcp --dport 4661 -i eth1 -j DNAT --to 192.168.0.4
iptables -A PREROUTING -t nat -p tcp --dport 4662 -i eth1 -j DNAT --to 192.168.0.4
iptables -A PREROUTING -t nat -p udp --sport 4665 -i eth1 -j DNAT --to 192.168.0.4

Any ideas anybody?

2)

by the way....
where can i find the rules for iptables ???





many thanks
Andreas Meier
mailto:a.meier.home@xxxxxxx


< Previous Next >
Follow Ups