All of lore.kernel.org
 help / color / mirror / Atom feed
* Multicast routing question...
@ 2003-08-29  1:36 Guilherme Cox
  2003-08-29 13:55 ` port redirect for localy generated request Sundaram Ramasamy
  0 siblings, 1 reply; 4+ messages in thread
From: Guilherme Cox @ 2003-08-29  1:36 UTC (permalink / raw)
  To: netfilter

I'd like to know if I can use iptables to solve one problem.

My network is:
<----Local Network/NAT (192.168.7.x)              -- eth0
<----Internet link/Cisco router                   -- eth1
<----ViaSat router/A Satelite link(10.254.103.x)  -- eth2

My default gateway is the Cisco router IP.
I have static routes to networks connected using eth2.

My /sbin/route  is:
cox@earth:~$ /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
xxx.xxx.xxx.128  0.0.0.0         255.255.255.192 U     0      0        0
eth1
192.168.7.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.149.0   10.254.103.1    255.255.255.0   UG    0      0        0 eth2
yyy.yyy.yyy.0   10.254.103.1    255.255.255.0   UG    0      0        0 eth2
10.254.103.0    0.0.0.0         255.255.255.0   U     0      0        0 eth2
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
224.0.0.0       0.0.0.0         240.0.0.0       U     0      0        0 eth0
0.0.0.0         xxx.xxx.xx.129  0.0.0.0         UG    1      0        0 eth1

--x--
Using this model the Multicast packets came from eth2 aren't routed to my
Local Network (eth0).
If I connect the VaiSat router on my switch and use ip-aliases, I can
receive the IGMP. However, it is unsafe. I need to mantain my network but
the multicast packets must be routed to eth0.

Do you know how can I do? Any ideias? Did anybody have the same problem?

If you want more information about my network, please contact me.

Thanks and sorry my english mistakes.

cox



^ permalink raw reply	[flat|nested] 4+ messages in thread

* port redirect for localy generated request
  2003-08-29  1:36 Multicast routing question Guilherme Cox
@ 2003-08-29 13:55 ` Sundaram Ramasamy
  2003-08-30  3:33   ` port redirect for locally " Mark E. Donaldson
  2003-08-30  8:04   ` port redirect for localy " Thorsten Scherf
  0 siblings, 2 replies; 4+ messages in thread
From: Sundaram Ramasamy @ 2003-08-29 13:55 UTC (permalink / raw)
  To: netfilter


Hi,

With this rule incoming request for port 80 redirected to port 8080. But
this is not working localy generated request.

iptables -t nat -A PREROUTING -p tcp --dport 80 -d LISTEN_IP -j DNAT --to
LISTEN_IP:80

How will i redirected local request port 80 to port 8080 ?

Thanks



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: port redirect for locally generated request
  2003-08-29 13:55 ` port redirect for localy generated request Sundaram Ramasamy
@ 2003-08-30  3:33   ` Mark E. Donaldson
  2003-08-30  8:04   ` port redirect for localy " Thorsten Scherf
  1 sibling, 0 replies; 4+ messages in thread
From: Mark E. Donaldson @ 2003-08-30  3:33 UTC (permalink / raw)
  To: Sundaram Ramasamy, netfilter

Use REDIRECT:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080

specify an interface if necessary.


-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Sundaram
Ramasamy
Sent: Friday, August 29, 2003 6:56 AM
To: netfilter@lists.netfilter.org
Subject: port redirect for localy generated request



Hi,

With this rule incoming request for port 80 redirected to port 8080. But
this is not working localy generated request.

iptables -t nat -A PREROUTING -p tcp --dport 80 -d LISTEN_IP -j DNAT --to
LISTEN_IP:80

How will i redirected local request port 80 to port 8080 ?

Thanks





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: port redirect for localy generated request
  2003-08-29 13:55 ` port redirect for localy generated request Sundaram Ramasamy
  2003-08-30  3:33   ` port redirect for locally " Mark E. Donaldson
@ 2003-08-30  8:04   ` Thorsten Scherf
  1 sibling, 0 replies; 4+ messages in thread
From: Thorsten Scherf @ 2003-08-30  8:04 UTC (permalink / raw)
  To: Sundaram Ramasamy, netfilter

> With this rule incoming request for port 80 redirected to port 8080. But
> this is not working localy generated request.
> iptables -t nat -A PREROUTING -p tcp --dport 80 -d LISTEN_IP -j DNAT --to
> LISTEN_IP:80

You have to use the OUTPUT Chain for localy generated packets:

iptables -t nat -A OUTPUT -p tcp --dport -d $LISTEN_IP -j DNAT --to 
$LISTEN_IP:8080


Greetings,
Thorsten Scherf
RHCE, RHCX


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-30  8:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-29  1:36 Multicast routing question Guilherme Cox
2003-08-29 13:55 ` port redirect for localy generated request Sundaram Ramasamy
2003-08-30  3:33   ` port redirect for locally " Mark E. Donaldson
2003-08-30  8:04   ` port redirect for localy " Thorsten Scherf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.