B
bjohnsme
I have a perl script that I use to mangle packets by hand rather than
using iptables to redirect for me. When I'm not using the perl script
though, I want to have ipmasquerading turned on. My problem is this:
My script runs fine so long as I don't ever run "iptables -t nat -F"
(or for that matter, anything that uses -t nat). I'm sending packets
using Net::RawSock.
Once one of those commands are run, is there a way to undo them? I've
tried stopping the service, but then running /etc/init.d/iptables
status still returns info.
How can I go about changing the rules so that it acts like a machine
without iptables running at all? I set the default policies to
accept, but this is no help either. Does anybody know if RawSock
does something funky when it sends out packets that could be
interfering with iptables? Any thoughts would be greatly
appreciated.
using iptables to redirect for me. When I'm not using the perl script
though, I want to have ipmasquerading turned on. My problem is this:
My script runs fine so long as I don't ever run "iptables -t nat -F"
(or for that matter, anything that uses -t nat). I'm sending packets
using Net::RawSock.
Once one of those commands are run, is there a way to undo them? I've
tried stopping the service, but then running /etc/init.d/iptables
status still returns info.
How can I go about changing the rules so that it acts like a machine
without iptables running at all? I set the default policies to
accept, but this is no help either. Does anybody know if RawSock
does something funky when it sends out packets that could be
interfering with iptables? Any thoughts would be greatly
appreciated.