Need help setting up a dial on demand dnsmasq dhcp server with a decent firewall i
Ok, I know most of this information is on here, but I'm sure it's scatered around all over the place, so I'm hoping that some really smart guru can pop along and give me a hand.
here is my setup:
(-- = connection to)
Slack 12 box acting as a Samba Domain Master and samba file shares server(192.168.1.3)
--Lan port on linksys WRT54G(192.168.1.1) running as DHCP server in router mode
Lan port on Linksys WRT54G(192.168.1.1)--Lan port on WRT54G(192.168.1.2)
--Lan port on 192.168.1.2 to Desktop computer running Win XP and occasionally Slack 12(DHCPC)
yes I know that it is a screwy connction scheme but its what I got to work when I first got everything wired up.
Now, my networking skills aren't that great, although the past couple months they have been getting better. now what I'm wanting to do is set it up so that slack 12 will dial out, but not on a spurious request from windows, mainly I want it so that I have to enable the "Internet Connection" in Network Connections in windows (or some other command scheme) and have dnsmasq re-poll the resolv.conf when it gets connected to pass the nameservers to the dhcp clients.
also is there a way to get pppd to aquire the nameservers at connect instead of having to enter them into the resolv.conf manually?
I also need to set up a iptables firewall when the dialup connection initiates and remove the firewall when the dialup drops.
I am planning to have it connect every night between 2AM and 5AM to do system updates automatically (prolly with slackpkg)
and if anyone can think of any slack ways to secure it even more from the internet when it is connected. I'd greatly appreciate it.
things I don't really know are iptables and dnsmasq, I can get the pppd system setup myself (I hope)
TIA, nekkutta
|