DNAT/SNAT & existing connections
Dear list,
I am looking into the use of a NAT "router" to change the destination (or source) IP addresses of packets in existing connections. Maybe it sounds weird why I might want to do this, but I need to divert streams to other destinations!
I understand from the iptables docs that only the first packet of a connection is examined for NAT entries, subsequent packets do not need to be processed again. I would like all packets to be examined OR I would like to be able to "reset" the particular entry in the table so that the existing connection will be "re-considered" again using the NAT.
Is this possible in some way with iptables? If not, can you point me in the right direction to a solution, please?
Thanx,
Steve
__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com
Quoted 8 lines · Stephen Bylo
Dear list,
I am looking into the use of a NAT "router" to change the destination (or source) IP addresses of packets in existing connections. Maybe it sounds weird why I might want to do this, but I need to divert streams to other destinations!
Quoted 4 lines
I understand from the iptables docs that only the first packet of a connection is examined for NAT entries, subsequent packets do not need to be processed again.
They do get processed. There is a short circuit to identify these packets and avoid traversing the whole nat table.
It's not clear to me what you precisely want to do.
Ramin
Quoted 17 lines
I would like all packets to be
examined OR I would like to be able to "reset" the particular entry in the table so that the existing connection will be "re-considered" again using the NAT.Is this possible in some way with iptables? If not, can you point me in the right direction to a solution, please?
Thanx,
Steve__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com
Dear Ramin & List,
Thanx for your mail. The world is getting more mobile, so here is some detail to my problem:
A mobile host M has two interfaces 1 & 2.
M is reading an open udp stream from host S (server) on interface 1. Interface 1 is always on-line. Interface 2 is only sometimes online and the route to 2 provides much more bandwidth than the route to 1. I want to route the stream through the higher bandwidth without S having to know about it. S should always think its communicating with the IP on interface 1.
____some network___(1) slow
S -------- NAT ---R___________________ M
some network (2) fast
R = our router to two different external networks
Tcp connections should also be "kept alive" and diverted to interface 2 on M.
After reading "netfilter-hacking-HOWTO.linuxdoc-4.html" and "iptables-tutorial.html" I find that existing connections will not be "diverted" in this way, only new connections are looked up in the NAT table. Would it be possible to change the dst values in the "conntrack" table as well as changing the NAT entry when interface (2) comes on-line ?
Any other ideas ?
Thanx for any help,
Steve
Quoted 33 lines · --- Ramin Dousti
Quoted 3 lines · Stephen Bylo
Dear list,
I am looking into the use of a NAT "router" to
change
Quoted 1 line
the destination (or source) IP addresses of
packets in
Quoted 2 lines
existing connections. Maybe it sounds weird why I might want to do this, but I need to divert
streams to
Quoted 6 lines
other destinations!
I understand from the iptables docs that only the first packet of a connection is examined for NAT entries, subsequent packets do not need to be processed again.
They do get processed. There is a short circuit to identify these
packets and avoid traversing the whole nat table.It's not clear to me what you precisely want to do.
Ramin
Quoted 6 lines
I would like all packets to be
examined OR I would like to be able to "reset" the particular entry in the table so that the existing connection will be "re-considered" again using the NAT.
Quoted 13 lines
Quoted 1 line
Is this possible in some way with iptables? If
not,
Quoted 1 line
can you point me in the right direction to a
solution,
Quoted 9 lines
please?
Thanx,
Steve__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com
__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com
Hi Stephen,
You lost me here. M is a remote host with two interfaces. There are two networks (AS) between your router R and M. I take that R is a linux box (??). Interface 1 is always up and interface 2 is sometimes up. Now you want to send the packets (mostly UDP) from your server S to M and you want the router R to do some kind of magic and know when 2 is up and nat to 2 and use 1 otherwise. While this might work for UDP (if I only knew how) there is no way you can switch between dst IP's of a TCP session.
What you could do is:
1) Have a loopback(dummy) interface D on M
2) Use some kind of routing protocol on M to propagate this D through 1 and 2 to the networks..
3) Receive this route from those networks on R
Then you could assign a higher cost to the network connected to 1. When 2 is up your preference would be through the lower network. When 2 is down, the only path would be through 1. At any rate the server S should only talk to D. This solution works for both UDP and TCP...
But I'm certain that M (being mobile) cannot send out any routing information. And besides your ISP's are not willing to receive the route from M and also are not willing to pass that route to R.
So, no, sorry I don't have any solution for you.
Ramin
Quoted 89 lines · Stephen Bylo
Dear Ramin & List,
Thanx for your mail. The world is getting more mobile, so here is some detail to my problem:
A mobile host M has two interfaces 1 & 2.
M is reading an open udp stream from host S (server) on interface 1. Interface 1 is always on-line. Interface 2 is only sometimes online and the route to 2 provides much more bandwidth than the route to 1. I want to route the stream through the higher bandwidth without S having to know about it. S should always think its communicating with the IP on interface 1.____some network___(1) slowS -------- NAT ---R___________________ M
some network (2) fastR = our router to two different external networks
Tcp connections should also be "kept alive" and diverted to interface 2 on M.
After reading "netfilter-hacking-HOWTO.linuxdoc-4.html" and "iptables-tutorial.html" I find that existing connections will not be "diverted" in this way, only new connections are looked up in the NAT table. Would it be possible to change the dst values in the "conntrack" table as well as changing the NAT entry when interface (2) comes on-line ?
Any other ideas ?
Thanx for any help,
SteveQuoted 33 lines · --- Ramin Dousti
Quoted 3 lines · Stephen Bylo
Dear list,
I am looking into the use of a NAT "router" to
change
Quoted 1 line
the destination (or source) IP addresses of
packets in
Quoted 2 lines
existing connections. Maybe it sounds weird why I might want to do this, but I need to divert
streams to
Quoted 6 lines
other destinations!
I understand from the iptables docs that only the first packet of a connection is examined for NAT entries, subsequent packets do not need to be processed again.
They do get processed. There is a short circuit to identify these
packets and avoid traversing the whole nat table.It's not clear to me what you precisely want to do.
Ramin
Quoted 6 lines
I would like all packets to be
examined OR I would like to be able to "reset" the particular entry in the table so that the existing connection will be "re-considered" again using the NAT.Quoted 13 lines
Quoted 1 line
Is this possible in some way with iptables? If
not,
Quoted 1 line
can you point me in the right direction to a
solution,
Quoted 9 lines
please?
Thanx,
Steve__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com
Quoted 1 line · --- Ramin Dousti
Hi Ramin,
(sorry, an amended version)
_______A_(slow)____(1)
S ----------------R___________________ M
B (faster) (2)+ Yes, R is Linux
+ (1) and (2) will get their IPs through DHCP whenever they connect.
+ We have full influence on S, R and M but only *partial* influence on A & B networks.
+ M can inform R which IP to use (1 or 2).
+ S can only know 1's IP.
+ A UDP stream can exist through S->R->A->(1) and should be diverted by R (through A to 2) when (2) comes on-line.
+ The UDP stream can be diverted back agin to (1) when (2) goes off-line again.
Does this help?
Thanx
Steve
Hi Stephen,
Quoted 140 lines
You lost me here. M is a remote host with two interfaces. There are
two networks (AS) between your router R and M. I take that R is a
linux box (??). Interface 1 is always up and interface 2 is sometimes
up. Now you want to send the packets (mostly UDP) from your server S to M
and you want the router R to do some kind of magic and know when 2 is up
and nat to 2 and use 1 otherwise. While this might work for UDP (if I only
knew how) there is no way you can switch between dst IP's of a TCP session.What you could do is:
1) Have a loopback(dummy) interface D on M
2) Use some kind of routing protocol on M to
propagate this D through
1 and 2 to the networks..
3) Receive this route from those networks on RThen you could assign a higher cost to the network connected to 1. When 2 is
up your preference would be through the lower network. When 2 is down, the
only path would be through 1. At any rate the server S should only talk to
D. This solution works for both UDP and TCP...But I'm certain that M (being mobile) cannot send
out any routing information.
And besides your ISP's are not willing to receive
the route from M and also
are not willing to pass that route to R.So, no, sorry I don't have any solution for you.
Ramin
Quoted 7 lines · Stephen Bylo
Dear Ramin & List,
Thanx for your mail. The world is getting more mobile, so here is some detail to my problem:
A mobile host M has two interfaces 1 & 2. M is reading an open udp stream from host S
(server)
Quoted 2 lines
on interface 1. Interface 1 is always on-line. Interface 2 is only sometimes online and the route
to
Quoted 1 line
2 provides much more bandwidth than the route to
1. I
Quoted 1 line
want to route the stream through the higher
bandwidth
Quoted 1 line
without S having to know about it. S should
always
Quoted 1 line
think its communicating with the IP on interface
1.
Quoted 7 lines
____some network___(1) slowS -------- NAT ---R___________________ M
some network (2) fastR = our router to two different external networks
Quoted 7 lines
Tcp connections should also be "kept alive" and diverted to interface 2 on M.
After reading "netfilter-hacking-HOWTO.linuxdoc-4.html" and "iptables-tutorial.html" I find that existing connections will not be "diverted" in this way,
only
Quoted 2 lines
new connections are looked up in the NAT table. Would it be possible to change the dst values in
the
Quoted 1 line
"conntrack" table as well as changing the NAT
entry
Quoted 8 lines
when interface (2) comes on-line ?
Any other ideas ?
Thanx for any help,
Steve--- Ramin Dousti <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
On Tue, Jul 15, 2003 at 06:01:15PM +0800,
Stephen
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines · Bylo
Dear list,
I am looking into the use of a NAT "router" to
change
Quoted 1 line
the destination (or source) IP addresses of
packets in
Quoted 1 line
existing connections. Maybe it sounds weird
why I
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
might want to do this, but I need to divert
streams to
Quoted 3 lines
other destinations!
I understand from the iptables docs that only
the
Quoted 1 line
Quoted 1 line
Quoted 1 line
first packet of a connection is examined for
NAT
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
entries, subsequent packets do not need to be
processed again.They do get processed. There is a short circuit
to
Quoted 2 lines
Quoted 2 lines
identify these
packets and avoid traversing the whole nattable.
Quoted 2 lines
Quoted 2 lines
It's not clear to me what you precisely want to
do.
Quoted 5 lines
Quoted 5 lines
Ramin
Quoted 2 lines
I would like all packets to be
examined OR I would like to be able to "reset"the
Quoted 1 line
Quoted 1 line
Quoted 1 line
particular entry in the table so that the
existing
Quoted 1 line
Quoted 1 line
Quoted 1 line
connection will be "re-considered" again using
the
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
NAT.
Is this possible in some way with iptables?
If
Quoted 2 lines
Quoted 2 lines
not,
Quoted 1 line
can you point me in the right direction to a
Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
solution,
Quoted 6 lines
please?
Thanx,
Steve__________________________________________________
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com
__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com
I don't see any solution to your problem. First of all you cannot switch between 1 and 2 in the middle of a stateful session like TCP. Secondly when 2 is down, that IP is unreachable, so the option that you would always send packets to 2 (even through A) is out of question.
As I said before you need to have a nailed-up IP on M which can be reachable through both A and B. When R knows that IP is reachable through B (ie when 2 is up) it sends the packets out through B, otherwise it keeps sending the packets through A.
Ramin
Quoted 191 lines · Stephen Bylo
Quoted 1 line · --- Ramin Dousti
Hi Ramin,
(sorry, an amended version)_______A_(slow)____(1) S ----------------R___________________ M B (faster) (2)+ Yes, R is Linux
+ (1) and (2) will get their IPs through DHCP whenever they connect.
+ We have full influence on S, R and M but only *partial* influence on A & B networks.
+ M can inform R which IP to use (1 or 2).
+ S can only know 1's IP.
+ A UDP stream can exist through S->R->A->(1) and should be diverted by R (through A to 2) when (2) comes on-line.
+ The UDP stream can be diverted back agin to (1) when (2) goes off-line again.Does this help?
Thanx
SteveHi Stephen,
Quoted 140 lines
You lost me here. M is a remote host with two interfaces. There are
two networks (AS) between your router R and M. I take that R is a
linux box (??). Interface 1 is always up and interface 2 is sometimes
up. Now you want to send the packets (mostly UDP) from your server S to M
and you want the router R to do some kind of magic and know when 2 is up
and nat to 2 and use 1 otherwise. While this might work for UDP (if I only
knew how) there is no way you can switch between dst IP's of a TCP session.What you could do is:
1) Have a loopback(dummy) interface D on M
2) Use some kind of routing protocol on M to
propagate this D through
1 and 2 to the networks..
3) Receive this route from those networks on RThen you could assign a higher cost to the network connected to 1. When 2 is
up your preference would be through the lower network. When 2 is down, the
only path would be through 1. At any rate the server S should only talk to
D. This solution works for both UDP and TCP...But I'm certain that M (being mobile) cannot send
out any routing information.
And besides your ISP's are not willing to receive
the route from M and also
are not willing to pass that route to R.So, no, sorry I don't have any solution for you.
Ramin
Quoted 7 lines · Stephen Bylo
Dear Ramin & List,
Thanx for your mail. The world is getting more mobile, so here is some detail to my problem:
A mobile host M has two interfaces 1 & 2. M is reading an open udp stream from host S
(server)
Quoted 2 lines
on interface 1. Interface 1 is always on-line. Interface 2 is only sometimes online and the route
to
Quoted 1 line
2 provides much more bandwidth than the route to
1. I
Quoted 1 line
want to route the stream through the higher
bandwidth
Quoted 1 line
without S having to know about it. S should
always
Quoted 1 line
think its communicating with the IP on interface
1.
Quoted 7 lines
____some network___(1) slowS -------- NAT ---R___________________ M
some network (2) fastR = our router to two different external networks
Quoted 7 lines
Tcp connections should also be "kept alive" and diverted to interface 2 on M.
After reading "netfilter-hacking-HOWTO.linuxdoc-4.html" and "iptables-tutorial.html" I find that existing connections will not be "diverted" in this way,
only
Quoted 2 lines
new connections are looked up in the NAT table. Would it be possible to change the dst values in
the
Quoted 1 line
"conntrack" table as well as changing the NAT
entry
Quoted 8 lines
when interface (2) comes on-line ?
Any other ideas ?
Thanx for any help,
Steve--- Ramin Dousti <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
On Tue, Jul 15, 2003 at 06:01:15PM +0800,
Stephen
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines · Bylo
Dear list,
I am looking into the use of a NAT "router" to
change
Quoted 1 line
the destination (or source) IP addresses of
packets in
Quoted 1 line
existing connections. Maybe it sounds weird
why I
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
might want to do this, but I need to divert
streams to
Quoted 3 lines
other destinations!
I understand from the iptables docs that only
the
Quoted 1 line
Quoted 1 line
Quoted 1 line
first packet of a connection is examined for
NAT
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
entries, subsequent packets do not need to be
processed again.They do get processed. There is a short circuit
to
Quoted 2 lines
Quoted 2 lines
identify these
packets and avoid traversing the whole nattable.
Quoted 2 lines
Quoted 2 lines
It's not clear to me what you precisely want to
do.
Quoted 5 lines
Quoted 5 lines
Ramin
Quoted 2 lines
I would like all packets to be
examined OR I would like to be able to "reset"the
Quoted 1 line
Quoted 1 line
Quoted 1 line
particular entry in the table so that the
existing
Quoted 1 line
Quoted 1 line
Quoted 1 line
connection will be "re-considered" again using
the
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
NAT.
Is this possible in some way with iptables?
If
Quoted 2 lines
Quoted 2 lines
not,
Quoted 1 line
can you point me in the right direction to a
Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
solution,
Quoted 6 lines
please?
Thanx,
Steve__________________________________________________
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com
Hi Ramin,
Quoted 1 line · --- Ramin Dousti
I don't see any solution to your problem. First of
Quoted 3 lines
all you cannot
switch between 1 and 2 in the middle of a stateful session like TCP.
ok - i understand, but just redirecting udp would be 90% of our goal. Let's put tcp out of the picture.
Quoted 4 lines
Secondly when 2 is down, that IP is unreachable, so the option that
you would always send packets to 2 (even through A) is out of question.
no - S would always send packets to IP (1), the NAT in R would translate (1) to (2). R will know when (2) is on-line.
Quoted 3 lines
As I said before you need to have a nailed-up IP on M which can be
We *cannot* have a dummy IP. The IPs come from A & B networks (DHCP) where we have only limited influence.
Quoted 5 lines
reachable through both A and B. When R knows that IP is reachable through
B (ie when 2 is up) it sends the packets out through B, otherwise it
keeps sending the packets through A.
This is ok if we can have changes made in A&B, but we may not have this privilege!
If I want *existing* UDP connections to be diverted, I need to change both the NAT table *and* the connection tracking table, is this right? Can somebody tell me if this can be done with iptables? Do I have to hack the code? I may do so if need be. Is there another NAT sollution out there that can do what I need? Is using a NAT to divert existing UDP streams technically possible?
Thanx for your help.
Steve
Quoted 176 lines
Ramin
Quoted 1 line · Stephen Bylo
--- Ramin Dousti <[email protected]>
Quoted 9 lines · wrote:
Quoted 1 line
Hi Ramin,
(sorry, an amended version)_______A_(slow)____(1) S ----------------R___________________ M B (faster) (2)Quoted 9 lines
+ Yes, R is Linux
+ (1) and (2) will get their IPs through
DHCP whenever they connect.
+ We have full influence on S, R and M but only
*partial* influence on A & B networks.
+ M can inform R which IP to use (1 or 2).
+ S can only know 1's IP.
+ A UDP stream can exist through S->R->A->(1) and
should be diverted by R (through A to 2) when(2)
Quoted 4 lines
comes on-line.
+ The UDP stream can be diverted back agin to (1)
when (2) goes off-line again.Quoted 15 lines
Does this help?
Thanx
SteveHi Stephen,
Quoted 8 lines
You lost me here. M is a remote host with two
interfaces. There are
two networks (AS) between your router R and M. I
take that R is a
linux box (??). Interface 1 is always up and
interface 2 is sometimes
up. Now you want to send the packets (mostlyUDP)
Quoted 2 lines
Quoted 2 lines
from your server S to M
and you want the router R to do some kind ofmagic
Quoted 2 lines
Quoted 2 lines
and know when 2 is up
and nat to 2 and use 1 otherwise. While thismight
Quoted 2 lines
Quoted 2 lines
work for UDP (if I only
knew how) there is no way you can switch betweendst
Quoted 10 lines
Quoted 10 lines
IP's of a TCP session.
What you could do is:
1) Have a loopback(dummy) interface D on M
2) Use some kind of routing protocol on M to
propagate this D through
1 and 2 to the networks..
3) Receive this route from those networks on RThen you could assign a higher cost to the
network
Quoted 4 lines
Quoted 4 lines
connected to 1. When 2 is
up your preference would be through the lower
network. When 2 is down, the
only path would be through 1. At any rate theserver
Quoted 4 lines
Quoted 4 lines
S should only talk to
D. This solution works for both UDP and TCP...But I'm certain that M (being mobile) cannot
send
Quoted 2 lines
Quoted 2 lines
out any routing information.
And besides your ISP's are not willing toreceive
Quoted 9 lines
Quoted 9 lines
the route from M and also
are not willing to pass that route to R.So, no, sorry I don't have any solution for you.
Ramin
On Wed, Jul 16, 2003 at 10:12:58AM +0800,
Stephen
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines · Bylo
Dear Ramin & List,
Thanx for your mail. The world is getting
more
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
mobile, so here is some detail to my problem:
A mobile host M has two interfaces 1 & 2.
M is reading an open udp stream from host S(server)
Quoted 1 line
on interface 1. Interface 1 is always
on-line.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Interface 2 is only sometimes online and the
route
Quoted 2 lines
Quoted 2 lines
to
Quoted 1 line
2 provides much more bandwidth than the route
to
Quoted 6 lines
Quoted 6 lines
1. I
Quoted 1 line
want to route the stream through the higher
bandwidth
Quoted 1 line
without S having to know about it. S should
always
Quoted 1 line
think its communicating with the IP on
interface
Quoted 3 lines
Quoted 3 lines
1.
Quoted 2 lines
____some network___(1)slow
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
S -------- NAT ---R___________________ M
some network (2)fast
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
R = our router to two different external
networks
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Tcp connections should also be "kept alive"
and
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
diverted to interface 2 on M.
After reading
"netfilter-hacking-HOWTO.linuxdoc-4.html" and
"iptables-tutorial.html" I find that existing
connections will not be "diverted" in thisway,
Quoted 2 lines
Quoted 2 lines
only
Quoted 1 line
new connections are looked up in the NAT
table.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Would it be possible to change the dst values
in
Quoted 11 lines
Quoted 11 lines
the
Quoted 1 line
"conntrack" table as well as changing the NAT
entry
Quoted 8 lines
when interface (2) comes on-line ?
Any other ideas ?
Thanx for any help,
Steve--- Ramin Dousti <[email protected]>
Quoted 8 lines
Quoted 8 lines
Quoted 1 line · wrote:
Quoted 1 line
On Tue, Jul 15, 2003 at 06:01:15PM +0800,
Stephen
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines · Bylo
Dear list,
I am looking into the use of a NAT
"router" to
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
change
Quoted 1 line
the destination (or source) IP addresses
of
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
packets in
Quoted 1 line
existing connections. Maybe it sounds
weird
Quoted 2 lines
Quoted 2 lines
why I
Quoted 1 line
Quoted 1 line
Quoted 1 line
might want to do this, but I need to
divert
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
streams to
Quoted 3 lines
other destinations!
I understand from the iptables docs that
only
Quoted 2 lines
Quoted 2 lines
the
Quoted 1 line
Quoted 1 line
Quoted 1 line
first packet of a connection is examined
Quoted 10 lines
for
Quoted 2 lines
Quoted 2 lines
NAT
Quoted 1 line
Quoted 1 line
Quoted 1 line
entries, subsequent packets do not need to
be
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
processed again.
They do get processed. There is a short
circuit
Quoted 1 line
Quoted 1 line
to
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com
Quoted 8 lines · Stephen Bylo
If I want *existing* UDP connections to be diverted, I need to change both the NAT table *and* the connection tracking table, is this right? Can somebody tell me if this can be done with iptables? Do I have to hack the code? I may do so if need be. Is there another NAT sollution out there that can do what I need? Is using a NAT to divert existing UDP streams technically possible?
I think one way of doing this is to reduce the conntrack timeout for UDP to almost nihil so that you see the effect of adding 2 to the nat immidiately. But in that case UDP returns would not benefit from the implicit conntrack structure and you need to allow the return traffic explicitly.
Ramin
Quoted 3 lines
Thanx for your help.
Steve
Hi!
I have now found what I'm looking for!
eg.: http://mosquitonet.stanford.edu/mip/
Mobile IP creates a tunnel from R through A to (2). That's what I need. I don't really need a NAT.
Thanx for the help,
Steve
Quoted 26 lines · --- Ramin Dousti
Quoted 1 line · Stephen Bylo
If I want *existing* UDP connections to be
diverted, I
Quoted 1 line
need to change both the NAT table *and* the
connection
Quoted 1 line
tracking table, is this right? Can somebody tell
me if
Quoted 1 line
this can be done with iptables? Do I have to hack
the
Quoted 4 lines
code? I may do so if need be. Is there another NAT sollution out there that can do what I need? Is using a NAT to divert existing UDP streams technically possible?
I think one way of doing this is to reduce the conntrack timeout for
UDP to almost nihil so that you see the effect of adding 2 to the nat
immidiately. But in that case UDP returns would not benefit from the
implicit conntrack structure and you need to allow the return traffic
explicitly.
Quoted 5 lines
Ramin
Quoted 3 lines
Thanx for your help.
Steve
__________________________________________________
Do You Yahoo!?
Send free SMS from your PC!
http://sg.sms.yahoo.com
Quoted 6 lines · Stephen Bylo
Hi!
I have now found what I'm looking for!
eg.: http://mosquitonet.stanford.edu/mip/
Mobile IP creates a tunnel from R through A to (2). That's what I need. I don't really need a NAT.
Good. When you installed/setup the package and have a good understanding as to how it serves your needs, send a brief explanation as to how it works. I'm very much interested in knowing what it can do in your situation to solve your problem.
Ramin
Quoted 3 lines
Thanx for the help,
Steve