Subject: gateway setup [1.6.2 / i386]
To: None <netbsd-help@netbsd.org>
From: None <mark@theswamp.org>
List: netbsd-help
Date: 06/03/2004 17:24:19
Would someone mind looking at the following settings for
me. I'm trying to setup a gateway machine with netbsd 1.6.2
but I'm having no luck what so ever. All I get is a return
ping from my external nic (rtk0). Thanks
my setup looks like this
--inet-->gateway(netbsd)-->switch-->PC's
I have a static IP also.
__ hosts (files)
24.xx.208.46 fred.theswamp.org
::1 localhost
127.0.0.1 localhost
__ mygate
24.xx.208.45
__ myname
fred.theswamp.org
__ resolv.conf
domain fred.theswamp.org
nameserver 65.xx.1.65
nameserver 65.xx.1.70
__ ifconfig.rtk0
inet 24.xx.208.46 netmask 255.255.255.252
__ ifconfig.tlp0
inet 192.168.131.5 netmask 255.255.255.255
__ ipnat.conf
map rtk0 192.168.131.0/24 -> 24.xx.208.46/30 proxy port ftp ftp/tcp
map rtk0 192.168.131.0/24 -> 24.xx.208.46/30 portmap tcp/udp auto
map rtk0 192.168.131.0/24 -> 24.xx.208.46/30
## also tried
## map rtk0 192.168.131.0/24 -> 0.0.0.0/32 proxy port ftp ftp/tcp
## map rtk0 192.168.131.0/24 -> 0.0.0.0/32 portmap tcp/udp auto
## map rtk0 192.168.131.0/24 -> 0.0.0.0/32
__ ipf.conf
pass in quick on rtk0
pass out quick on rtk0
pass out quick on tlp0
pass in quick on tlp0
pass out quick on lo0
pass in quick on lo0
## also tried
## block in all
## pass in all
__ rc.conf
# Networking startup
ipfilter=YES
ipnat=YES
ipfs=NO
ipsec=NO
ipman=NO (temp)
racoon=NO
auto_ifconfig=YES
net_interfaces=""
# Routing daemons
Routed=NO
gated=YES
mrouted=NO
__ kernel
options GATEWAY
options INET
options IPSEC
options IPSEC_ESP
options IPSEC_DEBUG
options MROUTING
options ISO,TPIP
options PHIL_HOOKS
options IPFILTER_LOG