IPTables 'multiport' startup issue - Network

This is a discussion on IPTables 'multiport' startup issue - Network ; Hello everyone, I'm having a very odd IPTables issue that I cannot make sence of. When I have any of my Linux servers come up and execute a firewall script, @ S09 (I don't think this has any significance, but ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: IPTables 'multiport' startup issue

  1. IPTables 'multiport' startup issue

    Hello everyone, I'm having a very odd IPTables issue that I cannot make
    sence of.

    When I have any of my Linux servers come up and execute a firewall script, @
    S09 (I don't think this has any significance, but I thought I'd include it),
    it executes the polocies fine except for the following line:

    $IPTABLES -A INPUT -p tcp -i $IF0 -d $IP0 -m multiport --dport
    20,21,22,25,80,110 -j ACCEPT

    If I manually execute it, the above line works properly and is reported in
    the -L output.

    Also, if I change the script to not use 'multiport' & open each port
    individually it works then too.

    Is there any sence to this?

    TIA,
    - Perry



  2. Re: IPTables 'multiport' startup issue

    Perry Whelan wrote:
    > Hello everyone, I'm having a very odd IPTables issue that I cannot make
    > sence of.
    >
    > When I have any of my Linux servers come up and execute a firewall script, @
    > S09 (I don't think this has any significance, but I thought I'd include it),
    > it executes the polocies fine except for the following line:
    >
    > $IPTABLES -A INPUT -p tcp -i $IF0 -d $IP0 -m multiport --dport
    > 20,21,22,25,80,110 -j ACCEPT
    >
    > If I manually execute it, the above line works properly and is reported in
    > the -L output.
    >
    > Also, if I change the script to not use 'multiport' & open each port
    > individually it works then too.
    >
    > Is there any sence to this?
    >
    > TIA,
    > - Perry
    >
    >

    No that doesn't make much SENSE. It might make more SENSE if you
    included a bit more detail.

    It might make even more SENSE if you tried running the script later, say
    in rc.local and see if the output of -L makes SENSE then.

    God I so much wanted to take a red pen to that message ;-)

  3. Re: IPTables 'multiport' startup issue


    "Mike" wrote in message
    news:cckd4f$ir9$1@thorium.cix.co.uk...
    > Perry Whelan wrote:
    > > Hello everyone, I'm having a very odd IPTables issue that I cannot make
    > > sence of.
    > >
    > > When I have any of my Linux servers come up and execute a firewall

    script, @
    > > S09 (I don't think this has any significance, but I thought I'd include

    it),
    > > it executes the polocies fine except for the following line:
    > >
    > > $IPTABLES -A INPUT -p tcp -i $IF0 -d $IP0 -m multiport --dport
    > > 20,21,22,25,80,110 -j ACCEPT
    > >
    > > If I manually execute it, the above line works properly and is reported

    in
    > > the -L output.
    > >
    > > Also, if I change the script to not use 'multiport' & open each port
    > > individually it works then too.
    > >
    > > Is there any sence to this?
    > >
    > > TIA,
    > > - Perry
    > >
    > >

    > No that doesn't make much SENSE. It might make more SENSE if you
    > included a bit more detail.
    >
    > It might make even more SENSE if you tried running the script later, say
    > in rc.local and see if the output of -L makes SENSE then.
    >
    > God I so much wanted to take a red pen to that message ;-)


    lol, me is an dab spellar...

    Anyhow, thanks for the help; but, the issue was something else in the
    script. It was how I was setting $IP0 (before ifconfig would've had anything
    to read)...

    - Perry



+ Reply to Thread