Re: pf-nat help (solved)

2008-05-16 Thread Jesus Sanchez
Ok, now everything works as spected, just for a mistake. When I did changes on the /etc/pf.conf, I relaunched the PF just with: # pfctl -d # pfctl -e I thought that was enougth to make the changes affect pf, but NOT, I needed to use this instead with my actual config: # pfctl -d # pfctl -ef

Re: pf-nat help (solved)

2008-05-16 Thread Jason Dixon
On May 16, 2008, at 11:39 AM, Jesus Sanchez wrote: Ok, now everything works as spected, just for a mistake. It's helpful for others if you explain what your mistake was. Bonus points for posting your corrected ruleset. Your learning helps others as well. When I did changes on the

Re: pf-nat help (solved)

2008-05-16 Thread Henning Brauer
* Jesus Sanchez [EMAIL PROTECTED] [2008-05-16 17:45]: Ok, now everything works as spected, just for a mistake. When I did changes on the /etc/pf.conf, I relaunched the PF just with: # pfctl -d # pfctl -e I thought that was enougth to make the changes affect pf, but NOT, of course not.

pf-nat help

2008-05-15 Thread Jesus Sanchez
Hi, I'm using OpenBSD 4.2. I'm triying to get a very unsafe-simple ruleset to make a nat between a laptop and my OpenBSD box. From my OpenBSD box I have two nics: OpenBSD box: rl0 (witch gets a IP from dhcp and gets to the internet via ADSL) sk0 (directly connected to the laptop via one cable)

Re: pf-nat help

2008-05-15 Thread Girish Venkatachalam
On 14:09:57 May 15, Jesus Sanchez wrote: nat on $ext_if from $localnetwork to any - (ext_if) How about changing this line to read nat on $ext_if from $localnetwork to any - ($ext_if:0) -Girish

Re: pf-nat help

2008-05-15 Thread Jesus Sanchez
Gregory Edigarov escribis: Jesus Sanchez wrote: Hi, I'm using OpenBSD 4.2. I'm triying to get a very unsafe-simple ruleset to make a nat between a laptop and my OpenBSD box. From my OpenBSD box I have two nics: OpenBSD box: rl0 (witch gets a IP from dhcp and gets to the internet via ADSL) sk0

Re: pf-nat help

2008-05-15 Thread Jason Dixon
On May 15, 2008, at 8:09 AM, Jesus Sanchez wrote: Hi, I'm using OpenBSD 4.2. I'm triying to get a very unsafe-simple ruleset to make a nat between a laptop and my OpenBSD box. From my OpenBSD box I have two nics: OpenBSD box: rl0 (witch gets a IP from dhcp and gets to the internet via ADSL)

Re: pf-nat help

2008-05-15 Thread Gregory Edigarov
Jesus Sanchez wrote: Gregory Edigarov escribis: Jesus Sanchez wrote: Hi, I'm using OpenBSD 4.2. I'm triying to get a very unsafe-simple ruleset to make a nat between a laptop and my OpenBSD box. From my OpenBSD box I have two nics: OpenBSD box: rl0 (witch gets a IP from dhcp and gets to the

Re: pf-nat help

2008-05-15 Thread Jason Dixon
On May 15, 2008, at 9:00 AM, Gregory Edigarov wrote: are you sure your pf is enabled? pfctl -e And make sure you've actually run sysctl -w net.inet.ip.forwarding=1, not just edited the sysctl.conf file. --- Jason Dixon DixonGroup Consulting http://www.dixongroup.net

Re: pf-nat help

2008-05-15 Thread Karl Karlsson
Have you added your openbsd box internal ip in you laptops /etc/mygate and thus have an default route set?