LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   can't use simple firewall script (it worked before) (https://www.linuxquestions.org/questions/linux-security-4/cant-use-simple-firewall-script-it-worked-before-67146/)

tigerflag 06-21-2003 09:26 PM

can't use simple firewall script (it worked before)
 
I'm running Knoppix 3.2 v 6-6-2003. I learned a very simple script for a firewall that worked like a charm in Slack 8.1 and Knoppix 3.1. Now I can't type it into /sbin/iptables without getting this error message:

root@luciano:/home/tigerflag# /sbin/iptables -A INPUT -p tcp -syn -j DROP
iptables v1.2.7a: host/network `-syn' not found
Try `iptables -h' or 'iptables --help' for more information.
root@luciano:/home/tigerflag#

I know zip about firewall scripts, just that this worked great for my stand-alone box on a dial-up connection.
Any suggestions as to what I'm doing wrong, or what I might change?

TIA,
Siri Amrit

david_ross 06-22-2003 06:49 AM

I think it should be "--syn" not "-syn". Note the extra "-"

tigerflag 06-23-2003 12:10 AM

That was it! Thanks, David!


All times are GMT -5. The time now is 06:42 AM.