LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 06-21-2003, 10:26 PM   #1
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Rep: Reputation: 30
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
 
Old 06-22-2003, 07:49 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
I think it should be "--syn" not "-syn". Note the extra "-"
 
Old 06-23-2003, 01:10 AM   #3
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
That was it! Thanks, David!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 05:19 AM
Simple firewall script not working for me Gates1026 Linux - Newbie 4 04-16-2004 10:40 PM
slackware's /etc/rc.d/rc.firewall equivalent ||| firewall script startup win32sux Debian 1 03-06-2004 10:15 PM
Simple firewall script. pls help Wags Slackware 5 02-18-2004 05:13 PM
Simple C Shell script is not so simple elconde Programming 2 09-17-2001 12:53 AM


All times are GMT -5. The time now is 03:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration