Basic NAT trouble for a newbie
I'm a Linux user that believes that Linux has become a very configurable brick, but a brick no less.
And searching around I found NetBSD which seems to be way lighter, faster, secure and reliable than Linux but is harder to make the jump that I expected.
I have a K6-2 with 128 RAM that I want to convert to be a home gateway (it works OK with Slackware), now I've installed NetBSD 5.0.2 and installed all the software I needed, well almost.
What is killing me is that the simple stuff seems to be not so simple.
I follow the basics on www dot netbs dot org and still I cannot manage to get the NAT rules straight.
Here they is the problem.
I have two interfaces:
My /etc/ipf.conf looks like this:
pass in from any to any pass out from any to any
map vr0 192.168.110.0/24 -> 0/32 proxy port ftp ftp/tcp map vr0 192.168.110.0/24 -> 0/32 portmap 10000:20000 map vr0 192.168.110.0/23 -> 0/32
No please correct me if I'm wrong, but the way I read them is this:
Forward any traffic from any host to any host and forward any traffic from any host to any host.
Grab all 192.168.110.0 subnet requests to the other ip/nic (ex0).
Ohh, I also enabled ip forwarding on /etc/sysctl.conf adding ip.inet.ip.forwarding=1, which is reflected on the output of sysctl -a
I have another mayor problem and is that dnsmasq is not respondig DHCP requests that I can see on tcpdump comming in, but not sure if it might be related. I think not since DHCP on vr0 should answer the requests anyway.
Thanks so much for the help in advanced.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Basic starter questions ???||dennky||OpenBSD Installation and Upgrading||10||5th December 2009 07:21 PM|
|Basic networking fail.||diw||OpenBSD General||13||31st March 2009 10:29 AM|
|mount second hard drive - newbie trouble||corneliu||FreeBSD General||7||23rd September 2008 11:51 PM|
|Basic sshd hardening||anomie||Guides||12||12th September 2008 04:39 AM|
|need some basic help on ifconfig||daemon-dd||FreeBSD General||4||29th July 2008 04:21 PM|