Date: Wed, 16 May 2007 16:58:39 +1200 From: "Brett Davidson" <brett@net24.co.nz> To: <freebsd-questions@freebsd.org> Subject: IP Firewall disconnecting me after firewall changes Message-ID: <60224D09909C0B43A50935A0893D8FF33A444C@srv.exchange.net24.net.nz>
next in thread | raw e-mail | index | archive | help
I keep firewall rules in a file that I then run via a "sh" command. You know, like /etc/rc.firewall. :-) =20 Essentially the file does=20 ipfw -q -f flush $cmd 0015 check-state $cmd set 31 <rule#> <allow tcp from <address/subnet> to me 22 in via $pif setup keep-state =20 where $cmd =3D "ipfw -q add" and $pif =3D "em0". =20 I understand that this set 31 rule should remain even after the flush action on the first line. =20 This does not appear to be the case. If I run this script from an ssh session I get disconnected which is not what I expected.=20 =20 What am I doing wrong? =20 Cheers, Brett.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?60224D09909C0B43A50935A0893D8FF33A444C>