tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Using NetBSD as a travel router



On Jan 24,  5:20pm, "D'Arcy Cain" wrote:
} On 01/02/2018 11:59 AM, D'Arcy Cain wrote:
} > I have resigned myself to needing two wifi cards.  The question is, will
} > any 802.11 card operate as an access point?
} 
} Turns out I only have one PCI slot in the computer that I am doing this
} on.  Have to look for a new system.
} 
} However, I still have a problem that I can't seem to solve.  I have set
} up wpa_supplicant, ipfilter, ipnat, etc. and everything mostly works.
} From that system I can get out to any place on the net.  When I try to
} make it the gateway it doesn't work.  Here's what I have so far.
} 
} rc.conf:
} hostname=dilbert.druid.net
} ifconfig_wm0="inet 192.168.215.105 netmask 0xffffff00"
} dhcpd=YES dhcpd_flags="-cf /home/darcy/svn/Druid/etc/dhcpd.conf wm0"
} wpa_supplicant=YES
} wpa_supplicant_flags="-c/etc/wpa_supplicant.conf -B -iathn0"
} dhclient=YES dhclient_flags="-4 athn0 -pf /var/run/dhclient.pid"
} ipfilter=YES # uses /etc/ipf.conf
} ipnat=YES # uses /etc/ipnat.conf
} 
} ifconfig.athn0:
} up
} dhcp

     Don't use both "dhcp" here and "dhclient=YES" as "dhcp" here
enables dhcpcd (a different DHCP client program).

} ipf.conf:
} pass in from any to any
} pass out from any to any
} 
} ipnat.conf:
} map athn0 192.168.215.111/32 -> 0/32 proxy port ftp ftp/tcp
} map athn0 192.168.215.111/32 -> 0/32 portmap tcp/udp 10000:20000
} map athn0 192.168.215.111/32 -> 0/32
} 
} wpa_supplicant.conf:
} ctrl_interface=/var/run/wpa_supplicant
} ctrl_interface_group=wheel
} update_config=1
} network={
}     ssid="Chalmetterv"
}     key_mgmt=NONE
} }
} 
} And net.inet.ip.forwarding = 1.
} 
} I can connect to the gateway server from another host but when I
} traceroute it goes to the gateway and stops.  I can't tell if it is
} failing to go through the wifi or if it is not coming back.
} 
} Anything jump out at anyone here?

     At a quick look, all I see is the attempt to start two DHCP clients.

}-- End of excerpt from "D'Arcy Cain"


Home | Main Index | Thread Index | Old Index