Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-07-2005, 08:37 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 9

Rep: Reputation: 0
iptables script error(?)

Whenever I use backslash "\" in my script it says:

[user@linux ~]# iptables-restore firewall-rules
Bad argument `\\'
Error occurred at line: 20
Try `iptables-restore -h' or 'iptables-restore --help' for more information.

What am I missing here? Without the backslash everything works fine.

Some iptables sample scripts online have backslashes, some forward slashes.

FC3 iptables-1.2.11-3.1
Old 10-08-2005, 02:56 PM   #2
LQ Newbie
Registered: Oct 2004
Posts: 9

Original Poster
Rep: Reputation: 0
No line-breaks in iptables-restore scripts allowed.


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
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 06:25 AM
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 05:19 AM
Yet another iptables script Cron Linux - Networking 0 03-12-2005 12:11 PM
linux 9 and java script error - premature end of script header sibil Linux - Newbie 0 01-06-2004 05:21 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 08:36 AM

All times are GMT -5. The time now is 01:30 AM.

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