[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PF and NAT (simple) -(sysctl.conf has been edited already)
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: PF and NAT (simple) -(sysctl.conf has been edited already)
- From: Saad Kadhi <saad_(_at_)_docisland_(_dot_)_org>
- Date: Fri, 8 Oct 2004 09:45:44 +0200
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
On Fri, Oct 08, 2004 at 09:19:11AM +0300, Fehmi Noyan Isi _EEE01 wrote:
> System : OpenBSD 3.5 GENERIC i386
> I am trying to connect my PCs to net over an OpenBSD NAT gateway.
> There are two ethernet interfaces on my openbsd box. external is "vr0" (which
> is connected to internet) and internal is (which is connected to switch)
> # echo dhcp > /etc/hostname.vr0
> # echo "inet 192.168.0.1 255.255.255.0 NONE" > /etc/hostname.rl0
> (I also tried 192.168.0.0!)
> then edited /etc/sysctl.conf, /etc/pf.conf and /etc/rc.conf files and added
> the lines below
> in /etc/sysctl.conf
> in rc.conf
> in pf.conf
> nat on $ext_if from $int_if:network to any -> ($ext_if)
> And the output of my "pfctl -sn" is
> nat on vr0 from inet 188.8.131.52/24 to any -> (vr0)
> I can connect to internet with my openbsd box. And ping the other machine on
> my network (and also to another machine on the internet). But other machine
> (which I pinged before) cannot connect to internet!
> What is wrong? Is there a problem with IP address of rl0?
what are your filter rules? can you ping the openbsd box from the
make sure you configured the rules correctly by taking operation
precedence (NAT vs. filtering) into account.
Visit your host, monkey.org