From: "Sebastião Antônio Campos (Infojoi)" <tiao@infojoi.com.br>
To: netfilter@lists.netfilter.org
Subject: Prob com REDIRECT + IPROUT2
Date: Thu, 23 Jun 2005 21:36:54 -0300 [thread overview]
Message-ID: <03b301c57854$d6921110$8b00000a@PIVT> (raw)
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
next reply other threads:[~2005-06-24 0:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-24 0:36 Sebastião Antônio Campos (Infojoi) [this message]
2005-06-24 12:43 ` iptables h323 rrq and sip 5060 ADEGOKE ARUNA
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='03b301c57854$d6921110$8b00000a@PIVT' \
--to=tiao@infojoi.com.br \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox