For those of you who use ipchains:
I am reading one of the newer IPCHAINS-HOWTOs and it says how you can
specify ports with the $LOCALIP symbol. However, when I do the following:
# ipchains -A input -p tcp -d $LOCALIP 21 -l -j DENY
I get this:
DENY tcp ----l- anywhere 0.0.0.21 any ->
any
Note how the port number actually gets added to 0.0.0.0 (0 in 32bit decimal
form.. 0+21 = 0.0.0.21) which is not what I mean. Also, the ports section
at the end sorta seems to half-realize that I tried specifying a port (or
port range) but something seems screwed.
Now, when I do this:
# ipchains -A input -p tcp -d 127.0.0.1 21 -l -j DENY
with the address explicitly specified, I get this:
DENY tcp ----l- anywhere localhost any ->
ftp
Which is correct.
Am I missing something? That first example of mine doesn't seem to yield
correct (documented.. HOWTO, etc) output. Even if they altered the
options etc of the program, it makes no sense that it only works when
you specify an explicit address (not the symbol) and it also makes no
sense that it only half figures there to be a port specification and
yet makes nothing legible out of it.. or whatever I'm trying to say. It's
like 4:30am. I'm not all with it :P
Ideas? Thanks
-Statux
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list