[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.
} ifconfig_wm0="inet 192.168.215.105 netmask 0xffffff00"
} dhcpd=YES dhcpd_flags="-cf /home/darcy/svn/Druid/etc/dhcpd.conf wm0"
} 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
Don't use both "dhcp" here and "dhclient=YES" as "dhcp" here
enables dhcpcd (a different DHCP client program).
} pass in from any to any
} pass out from any to any
} 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
} 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"
Main Index |
Thread Index |