LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 09:26 PM   #1
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

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

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

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


Reply



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 04:19 AM
Simple firewall script not working for me Gates1026 Linux - Newbie 4 04-16-2004 09:40 PM
slackware's /etc/rc.d/rc.firewall equivalent ||| firewall script startup win32sux Debian 1 03-06-2004 09:15 PM
Simple firewall script. pls help Wags Slackware 5 02-18-2004 04:13 PM
Simple C Shell script is not so simple elconde Programming 2 09-16-2001 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:23 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
Open Source Consulting | Domain Registration