Re: [Q] ipfw and 'me'

2003-01-08 Thread Khairil Yusof
On Tue, 2003-01-07 at 01:02, Jonathan Belson wrote: > Since the machine is a gateway, it has two network cards. Will > 'me' match *both* IP address or just the first one it comes > across? I only really want it to match the IP address of the > external interface, not the internal one. How about

Re: [Q] ipfw and 'me'

2003-01-06 Thread David Kelly
On Monday 06 January 2003 11:23 am, Jonathan Belson wrote: > Ceri Davies wrote: > >> > >>Since the machine is a gateway, it has two network cards. Will > >>'me' match *both* IP address or just the first one it comes > >>across? I only really want it to match the IP address of the > >>external int

Re: [Q] ipfw and 'me'

2003-01-06 Thread Jonathan Belson
Fernando Gleiser wrote: ifconfig xl0 | awk '/^\tinet / {print $2}' Nice! My awk isn't what it should be... --Jon http://www.witchspace.com To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message

Re: [Q] ipfw and 'me'

2003-01-06 Thread Fernando Gleiser
On Mon, 6 Jan 2003, Jonathan Belson wrote: > Jack L. Stone wrote: > > The best way to do this is to use "awk" to determine and set a variable for > > the external IP every time it changes and then refer to that variable in > > your rules. > > ifconfig | grep ^xl0 -1 | tail -n 1 | awk '{ print $2

Re: [Q] ipfw and 'me'

2003-01-06 Thread Jack L. Stone
At 05:53 PM 1.6.2003 +, Jonathan Belson wrote: >Jack L. Stone wrote: >> The best way to do this is to use "awk" to determine and set a variable for >> the external IP every time it changes and then refer to that variable in >> your rules. > >ifconfig | grep ^xl0 -1 | tail -n 1 | awk '{ print $2

Re: [Q] ipfw and 'me'

2003-01-06 Thread Jonathan Belson
Jack L. Stone wrote: The best way to do this is to use "awk" to determine and set a variable for the external IP every time it changes and then refer to that variable in your rules. ifconfig | grep ^xl0 -1 | tail -n 1 | awk '{ print $2 }' Any neater way? :-) --Jon http://www.witchspace.com

Re: [Q] ipfw and 'me'

2003-01-06 Thread Jonathan Belson
Dan Nelson wrote: me is me. Maybe the "recv | xmit | via {ifX | if* | ipno | any}" options will help? What exactly are you trying to allow/block? My firewall rules are based on the 'simple' pattern in rc.firewall. I've got stuff like this to explicitly allow certain connections: # ssh

Re: [Q] ipfw and 'me'

2003-01-06 Thread Dan Nelson
In the last episode (Jan 06), Jonathan Belson said: > Ceri Davies wrote: > >On Mon, Jan 06, 2003 at 05:02:01PM +, Jonathan Belson wrote: > >>I've just been looking into the 'me' option for ipfw: > >> > >>me matches any IP address configured on an interface in the > >> system. The ad

Re: [Q] ipfw and 'me'

2003-01-06 Thread Jack L. Stone
At 05:23 PM 1.6.2003 +, Jonathan Belson wrote: >Ceri Davies wrote: >> On Mon, Jan 06, 2003 at 05:02:01PM +, Jonathan Belson wrote: >> >>>I've just been looking into the 'me' option for ipfw: >>> >>>me matches any IP address configured on an interface in the >>>system. The add

Re: [Q] ipfw and 'me'

2003-01-06 Thread Jonathan Belson
Ceri Davies wrote: On Mon, Jan 06, 2003 at 05:02:01PM +, Jonathan Belson wrote: I've just been looking into the 'me' option for ipfw: me matches any IP address configured on an interface in the system. The address list is evaluated at the time the packet is analysed. Si

Re: [Q] ipfw and 'me'

2003-01-06 Thread Ceri Davies
On Mon, Jan 06, 2003 at 05:02:01PM +, Jonathan Belson wrote: > I've just been looking into the 'me' option for ipfw: > > me matches any IP address configured on an interface in the > system. The address list is evaluated at the time the > packet is analysed. > > Since th

[Q] ipfw and 'me'

2003-01-06 Thread Jonathan Belson
Hiya My ISP uses DHCP to allocate IP numbers, so currently every time the IP changes, I have to manually change my firewall rules. I've just been looking into the 'me' option for ipfw: me matches any IP address configured on an interface in the system. The address list is evaluate