All of lore.kernel.org
 help / color / mirror / Atom feed
From: "hare ram" <hareram@sol.net.in>
To: netfilter@lists.samba.org
Cc: Stef Coene <stef.coene@docum.org>
Subject: Re: Bridge with iptables
Date: Fri, 4 Apr 2003 20:41:17 +0530	[thread overview]
Message-ID: <094a01c2fabc$720c4e80$13fcc5cb@Housecall> (raw)
In-Reply-To: 200304031024.03315.netfilter@newkirk.us


Hi Stef and all Gurus of iptables


thanks for the helping me setting up bridge

i have setup the bridge successfully ( transparent ) and assigned some
Public IP to br0 to monitor

In transparent Bridge, i want to divert the traffic port 80 or http traffic
to my squid Server running on port 3129 ( changed from default from 3128 to
3129)

My seltup like this

Public IP LAN x.x.x.1---eth1(Bridge (br0 x.x.x.2)) eth0--- Router (
x.x.x.3)--Internet

Gateway of the public LAN is x.x.x.3

i have done the following config.

/usr/local/sbin/iptables -t nat -A PREROUTING -i eth1 -s 0/0 -p tcp --dport
80 -j REDIRECT --to-port 3129

when i see the squid log iam not able to see anything, in browser i get
error  "The page cannot be displayed"

when i see the iptables out put look like below

[root@bridge root]# iptables -nL -v -t nat
Chain PREROUTING (policy ACCEPT 98 packets, 12602 bytes)
 pkts bytes target     prot opt in     out     source
destination
    6   288 REDIRECT   tcp  --  eth1   *       0.0.0.0/0
0.0.0.0/0          tcp dpt:80 redir ports 3129

Chain POSTROUTING (policy ACCEPT 98 packets, 12602 bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source
destination


iam able to see some packets are travelling in the same rule,

what could be the wrong, can some one guide me for this problem

thanks in advance

hare



  reply	other threads:[~2003-04-04 15:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-03 14:44 Bridge with iptables hare ram
2003-04-03 15:24 ` Joel Newkirk
2003-04-04 15:11   ` hare ram [this message]
2003-04-03 15:56 ` pieter claassen
2003-04-03 16:02 ` Drew Einhorn

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='094a01c2fabc$720c4e80$13fcc5cb@Housecall' \
    --to=hareram@sol.net.in \
    --cc=netfilter@lists.samba.org \
    --cc=stef.coene@docum.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 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.