Re: iptables - internal addresses cannot see external interface

From: Michael Mueller (malware@t-online.de)
Date: 01/27/02


From: Michael Mueller <malware@t-online.de>
Date: Sun, 27 Jan 2002 05:37:03 +0100

Hi Brad,

you wrote:
> After viewing several tutorials, I've managed to kludge the attached
> iptables script together, and everything seems to be working so far,
> except my internal machines cannot access the external nic on the
> server facing the internet. I'm running a web server on it, and
> everyone else can see it, ssh to it, etc., but I can't from my
> internal boxes. I have to believe that something is just missing from
> the script to enable this...any help is appreciated, and any
> constructive criticism is welcome. Thanks in advance.
[...]
> # Rules for special networks not part of the Internet
> /sbin/iptables -A INPUT -p ALL -i ${intnic} -d ${intnic_bcast} -j
> ACCEPT
> /sbin/iptables -A INPUT -p ALL -i ${locnic} -d ${locip} -j ACCEPT
> /sbin/iptables -A INPUT -p ALL -i ${intnic} -d ${int_range} -j ACCEPT

You disabled it by your rules. You accept only packets destinated to
192.168.0.0/16 on your local interface. Maybe you want to change the
"Rules for incoming packets from the Internet" to include the internal
traffic destinated to your public IP by changing "-i ${extnic}" into "-d
${extip}". Another choice would be to add

/sbin/iptables -A INPUT -p ALL -i ${intnic} -d ${extip} -j ACCEPT

Michael



Relevant Pages

  • Re: *sigh* Can not get LAN internet ready since FC3 install
    ... My iptables script works. ... Once ip forwarding was turned on all is well. ... >> box can get to the internet just fine. ... I've got to make a phone call...hold this gum in your mouth. ...
    (Fedora)
  • Re: iptables - internal addresses cannot see external interface
    ... > iptables script together, and everything seems to be working so far, ... Internet clients would still be able to find your outside connection from ... any internet DNS hostname or IP. ...
    (comp.os.linux.security)
  • Re: sendmail
    ... sendmail shipped with AIX comes with ... sendmail.cf which isn't recommended to use on the server facing ... Internet (allow proxy and such)... ...
    (comp.unix.aix)
  • Re: "It works well enough" (was Re: $640.00 to fill the tanks...)
    ... and HTML is not really being put to the uses it was ... Not being an expert in the internet, ... but I know a kludge when I see it. ... For static page markup, it was acceptable, but people kept ...
    (rec.aviation.piloting)