Networking Forums

Networking Forums > Computer Networking > Linux Networking > nat table and perl problem

Reply
Thread Tools Display Modes

nat table and perl problem

 
 
bjohnsme
Guest
Posts: n/a

 
      08-09-2004, 08:35 PM
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).

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. Any thoughts would be greatly
appreciated.
 
Reply With Quote
 
 
 
 
bjohnsme
Guest
Posts: n/a

 
      08-12-2004, 03:00 PM
I've found some more information out about this... the problem stems
from messing with the flag/offset bits in the packets. If I don't
muck with those, the packets go out fine... does anybody have any
ideas on how I could sneak these manipulated packets through NAT?
They seem get dropped no matter what...

thanks,
brad


(E-Mail Removed) (bjohnsme) wrote in message news:<(E-Mail Removed). com>...
> 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).
>
> 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. Any thoughts would be greatly
> appreciated.

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing table problem Hasan MANZAK Windows Networking 3 10-16-2009 02:36 AM
a problem with nat table setting yozhang@gmail.com Linux Networking 2 02-01-2006 06:47 PM
neighbor table overflow problem Jason Linux Networking 5 09-10-2004 05:44 PM
Is there any problem in my iptables table? jwhan Linux Networking 1 06-12-2004 08:54 AM
Route Table problem with new Toshiba laptop Kerry Wireless Internet 0 04-29-2004 06:23 PM



1 2 3 4 5 6 7 8 9 10 11