Networking Forums

Networking Forums > Computer Networking > Linux Networking > Tweaking address rewriting for connection tracking

Reply
Thread Tools Display Modes

Tweaking address rewriting for connection tracking

 
 
Mark T.B. Carroll
Guest
Posts: n/a

 
      09-07-2007, 02:36 AM
I like the ip_conntrack_whatever things that are protocol-aware and
rewrite the addresses and ports in the protocol based on NAT.

However, my ISP assigns me a static RFC1918 address for my gateway's
external interface, and a normal globally-routable address for the rest
of the world to use. They must do some sort of static NAT thing
themselves.

Of course, this means that as things get NAT'd at my end, protocols get
rewritten with the wrong address in them, they get the RFC1918 address,
which nobody's going to be able to reach me at.

One solution would be to have two machines at my end doing NAT - include
the protocol-aware stuff for one with my 'public' IP address on the
external interface, then hide that behind a not-protocol-rewriting one
that rewrites things back to the RFC1918 address.

Is there a way I can do it with iptables on just one machine?

Mark
 
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
DNATing without connection tracking - is it possible? Chris Dew Linux Networking 9 01-26-2009 11:47 AM
PPTPD connection tracking markvr Linux Networking 9 11-30-2006 03:39 PM
IPv6 connection tracking newsposter@carceri.dk Linux Networking 0 09-10-2006 09:45 AM
Tracking down a device with the wrong IP address? Boe Windows Networking 1 05-19-2006 09:18 PM
Firewall ip-address rewriting and pcap library? G?ranBo Linux Networking 0 11-20-2003 11:40 AM



1 2 3 4 5 6 7 8 9 10 11