On 09/01/2008, Darragh <lists at digitaldarragh.com> wrote:
> the second command does not return an error at the command line however
> the first and the third are not excepted at all. Interestingly, when I
> use -s !192.168.2.0/24 I get a very strange error about trying to cat
> squid.conf when I press up arrow when trying to reenter the command I see
> that it's actually putting in a command at the start of the IP address
> that I typed days ago.
> I've a feeling it's some kind of very strange bug.
>> Can anyone indicate where I'm going wrong with these commands?
>
Can't help you much with the iptables but the ! construct in bash is
history substitution.
e.g run the history command and there are few example lines:
491 screen
492 screen -R
493 mutt
494 opera&
Then running !492 will run the 'screen -R' command again.
So it looks like !192 is being interpreted as inserting line 192 from
the history and then it runs the command. From looking at the iptables
command you may need a space after the !
Regards,
Dermot
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!