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

Re: iptables + dhcp_client



Is this in 'man dhclient-script' under /etc/dhclient-exit-hooks ?
It appears that I have to write up my own script, yes?


Yes, you'll have to write your own script, but it's not difficult. It's the same as giving commands through a terminal, you just Get More Functionality (tm) and Make the Computer Do Your Job (tm) :-) . Just sit back and relax while you watch everything go wrong...

It works! It works great. But it's has the same issue of being a dhcp client with an iptables firewall on it. But If the first part is true, then the issue of it being pcmcia is moot. Yes?

Pcmcia NICs appear as normal cards to the firewall software. It's should be no problem. Btw, if you use a dhcp system, you seem to be setting up pretty complex firewalls. Or have you tried using (iptables) with -i and -o? No IP needed. Rules are bound to interfaces (in-interface and out-interface) instead. No scripts.
These are totally sufficient for local only firewalls.
I'd like to hear about this, I've been wondering about some SNAT and DNAT rules in iptables myself. They can't be used with -i and -o...

hth,
/johan

--
Johan Ehnberg
johan@ehnberg.net
"Windows? No... I don't think so."




Reply to: