[plug] IPChains
Damion Hill
dhill at wantree.com.au
Mon Sep 18 22:46:16 WST 2000
Thanks to both Matt and Kai on this. They both opened my eyes.
I needlessly had the PPPADDR macro in my scripts (that's what
happens when you follow examples from a book). I didn't need my
ppp0 address for these rules to work. The rules apply to the ppp0
interface and therefore son't need to be told the specific IP. Doh!!
This has been bugging me for a couple of weeks!!
Live and learn.
On 18 Sep 00, at 22:22, Damion Hill wrote:
>
> On 18 Sep 00, at 22:04, Matt Kemner wrote:
>
> > What is in the script (and what does it do) and why does it need to
> > know your IP address?
> >
> Matt,
>
> This is an excert from my script
>
> # Macro defs
> PPPADDR="203.59.179.249"
> UNPRIVPORTS="1024:65535"
>
> # Retrieve mail (POP3) from any host
> ipchains -A input -j ACCEPT -i ppp0 -p tcp -s any/0 110 -d
> $PPPADDR $UNPRIVPORT
> ipchains -A output -j ACCEPT -i ppp0 -p tcp -d any/0 110 -s
> $PPPADDR $UNPRIVPORT
>
> A reply from Kai (off list) showed me that he is using the interface
> (ppp0) rather than the IP address. I think this is where I'm going
> wrong.
>
> Damion.
> --
> Damion Hill
> dhill at wantree.com.au
>
>
--
Damion Hill
dhill at wantree.com.au
More information about the plug
mailing list