All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stephan Viljoen" <stephan@panintra.com>
To: netfilter@lists.samba.org
Subject: MSM Mesanger through a iptables firewall.
Date: Thu, 4 Jul 2002 16:06:37 +0200	[thread overview]
Message-ID: <003e01c22364$03356d50$f218dcc1@Tink> (raw)
In-Reply-To: 20020704080226.A4820@trot

Hi there , some of my clients is having problems to send files to each other
with MSN. The problem
seems to be that I'm running 2 firewalls behind each other.

PC 1 can't send a file to PC 2 but PC 2 can send a file to PC 1. PC 3 and PC
1 can send files
to each other.  Now all the pcs can serve the web , ftp , chat , blah blah
blah. I'm not blocking any ports what
so ever , so it's just masq. and normal packet forwarding.

Here's all the information.

Help will be apreciated.

PC 1 :
IP : 10.0.0.10 , Gateway : 10.0.0.1

Firewall 1:
eth0 : 193.220.24.230 : uplink  , Gateway : 193.220.24.193
eth1 : 10.0.0.1/16

echo "   enabling forwarding.."
echo "1" > /proc/sys/net/ipv4/ip_forward
$IPTABLES -F
$IPTABLES -X
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -t nat -A POSTROUTING -s 10.0.0.1/16 -o eth0 -j MASQUERADE
$IPTABLES -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j
ACCEPT
$IPTABLES -A FORWARD -i eth1 -o eth0 -j ACCEPT

Firewall 2:
eth0 : 193.220.24.8
eth1 : 193.220.24.193
eth2 : 192.168.1.1

$IPTABLES -F
$IPTABLES -X
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j
ACCEPT
$IPTABLES -A FORWARD -i eth1 -o eth0 -j ACCEPT

$IPTABLES -t nat -A POSTROUTING -s 192.168.1.1/24 -o $EXTIF -j MASQUERADE
$IPTABLES -A FORWARD -i eth0 -o eth2 -m state --state ESTABLISHED,RELATED -j
ACCEPT
$IPTABLES -A FORWARD -i eth2 -o eth0 -j ACCEPT

PC 2 :
IP : 193.220.24.242 , Gateway : 193.220.24.193

PC3 :
IP : 192.168.1.10 , Gateway : 192.168.1.1





  reply	other threads:[~2002-07-04 14:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-03 23:22 Most stable firewall distro George Vieira
2002-07-04  0:56 ` leolistas
2002-07-04 12:02   ` George Georgalis
2002-07-04 14:06     ` Stephan Viljoen [this message]
2002-07-04 14:13       ` MSM Mesanger through a iptables firewall Antony Stone
2002-07-04 14:21       ` MSN " Antony Stone

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='003e01c22364$03356d50$f218dcc1@Tink' \
    --to=stephan@panintra.com \
    --cc=netfilter@lists.samba.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.