Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Clemens Eisserer <linuxhippy@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: Two network cards - routing and iptables
Date: Fri, 26 Aug 2005 17:31:19 +0200	[thread overview]
Message-ID: <194f625505082608313b473358@mail.gmail.com> (raw)
In-Reply-To: <2F75680A268354469586578F0712182AB552D4@CXOEXC12.AMERICAS.CPQCORP.NET>

Hello again and thanks a lot for answering me,

>    For issue 1, perhaps you are blocking ICMP traffic on eth1?
No, I do not block anything as far as I know regarding ICMP.

This configuration I use for iptables:
echo 1 >/proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
iptables -t filter -A INPUT -s 192.168.0.0/24 -j ACCEPT
iptables -t filter -A INPUT -s 192.168.1.0/24 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport \! 8901 -j DROP

btw. do you know why I cannot connect to the internet from localhost
if I set the last line?
I tried to set -s !127.0.0.1 but this also seems to not work :-(

>    For issue 2, ip_forward needs to be set to a 1 (not part of
> iptables).
> 
> Take Care!
Is this really anything I need to do since I already set it to 1

Hope I am not nerving,

thank you in advance, lg Clemens


  reply	other threads:[~2005-08-26 15:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-26 15:24 Two network cards - routing and iptables Harrison, Bruce (CXO)
2005-08-26 15:31 ` Clemens Eisserer [this message]
2005-08-31 18:37   ` Clemens Eisserer
  -- strict thread matches above, loose matches on Subject: below --
2005-08-26 14:55 Clemens Eisserer

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=194f625505082608313b473358@mail.gmail.com \
    --to=linuxhippy@gmail.com \
    --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