Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2007 18:35:27 +0000
From:      "=?UTF-8?Q?Miguel_Alc=C3=A1ntara?=" <miguel.alc@gmail.com>
To:        faqfreebsd <freebsd-questions@freebsd.org>
Subject:   PF NAt
Message-ID:  <5855700c0704261135m7ddc06dbuc74e501e9bef3ca1@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

hello to all the people, i'm trying for days to get work natting, but
nothing happens.

FreeBSD 6.2

/etc/rc.conf

gateway_enable = "YES"

ifconfig_vr0="inet 192.168.1.2 netmask 255.255.255.0"
ifconfig_xl0="inet 192.168.1.3 netmask 0xffffffff"
squid_enable="YES"

---

/etc/pf.conf

exter_if = "vr0"
inter_if = "xl0"

nat on $exter_if from $inter_if  to any -> $exter_if
rdr on $inter_if  inet proto tcp from  any to any port www -> 127.0.0.1 port
3128


/usr/local/etc/squid/squid.conf

http_port 3128 transparent
visible_hostname foo

#all the rest is left by default

The problem is that another machine can't surf or just ping the external nic
vr0. What I'm doing wrong, help me please. Thanks in advance.
-- 
$ miguel_alcántara $

"… empiezo acá con la idea de ir allá en un experimento para aumentar, por
ejemplo, la velocidad del cable interoceánico del Atlántico; pero cuando he
llegado en parte a la meta, me encuentro con un fenómeno que me empuja en
otra dirección [...] hacia algo completamente inesperado".

Thomas A. Edison.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5855700c0704261135m7ddc06dbuc74e501e9bef3ca1>