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)
I seted the int_if ip statically as 192.168.1.1 (the laptop have asigned
192.168.1.2 and they see each other without problem, and I can do FTP
transfers and stuff like that)
I have set the sysctl net.inet.ip.forwarding=1
my pf.conf (very unsafe and very simple, only to try this)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ext_if = "rl0"
int_if = "sk0"
localnetwork = "${int_if}:network"
scrub in all
nat on $ext_if from $localnetwork to any -> (ext_if)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
then I make on the laptop (wich uses rl0):
ifconfig rl0 inet 192.168.1.2
but in the laptop I don't have internet at all, it see the OpenBSD
box as 192.168.1.1 but nothing more.
What I'm doing wrong?
Thanks for your time
-Jesus
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| jmerkey | [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc4 released |
| Christoph Lameter | [04/14] vcompound: Core piece |
| Andrew Morton | Re: 2.6.21-rc2-mm1 |
git: | |
| Stephen R. van den Berg | Re: Git vs Monotone |
| Ken Pratt | pack operation is thrashing my server |
| Barry Fishman | Problems setting up bare repository (git 1.5.3.3) |
| Francis Moreau | What about git cp ? |
| David Newman | setting dscp or tos bits |
| Peter | OpenBSD as Virtualbox guest |
| Iñigo | Re: Real men don't attack straw men |
| Richard Daemon | OpenBSD 4.3 running in VirtualBox? Anyone have it working properly? |
| Christoph Hellwig | Re: silent semantic changes with reiser4 |
| Jens Axboe | [PATCH][RFC] fast file mapping for loop |
| Al Boldi | Re: [RFD] Incremental fsck |
| Eric Sandeen | Re: [RFC] Heads up on sys_fallocate() |
