Linux Netfilter discussions
 help / color / mirror / Atom feed
* Prob com REDIRECT + IPROUT2
@ 2005-06-24  0:36 Sebastião Antônio Campos (Infojoi)
  2005-06-24 12:43 ` iptables h323 rrq and sip 5060 ADEGOKE ARUNA
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastião Antônio Campos (Infojoi) @ 2005-06-24  0:36 UTC (permalink / raw)
  To: netfilter

Alguém tem uma solução para mim???

Galera...

I have two links to internet, one by ADSL (512 kbps) e other EMBRATEL ( 1024 
Kpbs ).
I did "ip route" e it happen ok, but whem I put the with iptables to traffic 
on 80 port redirect to 3128 port of SQUID, I can only use the ADSL link, 
what is default link.
The configurations:

( ADSL 512K )       eth0
Server IP  = 192.168.7.2
Modem IP     = 192.168.7.1

( EMBRATEL 1024K )  eth1
Server IP  = 200.200.200.2
Router IP    = 200.200.200.1

( LAN 1)      eth2
Server IP  = 10.0.0.1
LAN   = 10.0.0.0/24

( LAN 2)      eth2:1
Server IP  = 192.168.0.1
LAN   = 192.168.0.0/24

#iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j 
SNAT --to-soutce 192.168.7.1
#iptables -t nat -A POSTROUTING -o eth1 -s 10.0.0.20 -j SNAT --to-soutce 
200.200.200.2
#ip rule add from 10.0.0.20/32 table embratel
#ip route add 200.200.200.1 dev eth1 table embratel
#ip route add default via 200.200.200.1 table embratel
#ip route add 10.0.0.20/32 via 10.0.0.1 table embratel

Here everything is workingm, but when I put the following rule....the 
traffic goes to only ADSL Link that is the default gateway.

#iptables -t nat -A PREROUTING -p tcp -i eth2 --dport 80 -j 
REDIRECT --to-port 3128

I am some help me.

Tks

Sebastião Antônio Campos



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

end of thread, other threads:[~2005-06-24 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-24  0:36 Prob com REDIRECT + IPROUT2 Sebastião Antônio Campos (Infojoi)
2005-06-24 12:43 ` iptables h323 rrq and sip 5060 ADEGOKE ARUNA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox