Article View: ahn.tech.linux
Article #633IPTABLES problems
From: Mark
Date: Sun, 31 Mar 2002 04:40
Date: Sun, 31 Mar 2002 04:40
53 lines
3246 bytes
3246 bytes
I'm still a bit green when it comes to Linux, but I'm trying to get IPTABLES going. I've been going through a pretty good book on the subject, but a lot of the rules and policies I've put in give errors. So I copied the exact script from the books web page, and it does the same thing! He's the page for reference. http://www.linux-firewall-tools.com/ftp/firewall/standalone.firewall.1 I'm running Redhat 7.2 with IPTABLES enabled and running (IPCHAINS is disabled). I get errors such as: : command not foundll iptables; Bad policy name and : command not foundll 'ptables v1.2.3: Invalid target name 'DROP and : command not foundll 'ptables v1.2.3: Invalid target name 'ACCEPT and 'ptables v1.2.3: Unknown arg '--flush I get a lot of the errors listed above. I also get errors on some of the kernel commands like # Enable TCP SYN Cookie Protection echo 1 > /proc/sys/net/ipv4/tcp_syncookies it says the file is not found?....... Now, I'll give some info on what I did incase it has something to do with it. Because my test Linux box is in an odd spot in my room. I typed the script out in Notepad on my WinXP system, named the file rc.firewall, and saved it. Then I put it in the /etc/rc.d/ directory and did the following: chmod u=rwx /etc/rc.d/rc.firewall chown root.root /etc/rc.d/rc.firewall chmod u=rwx /etc/rc.d/rc.firewall and put the line sh /etc/rc.d/rc.firewall in the rc.local file. I don't know what the hell is going on. Does RH 7.2 use a different version of IPTABLES where these commands don't work? Did making the file in notepad funk it up? Any help on this would be great!
Technical Details
Message-ID:
<Vqwp8.38406$jL3.588838979@news.tor.primus.ca>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!feed2.news.rcn.net!rcn!netnews.com!xfer02.netnews.com!feed.cgocable.net!feed.tor.primus.ca!feed.nntp.primus.ca!news.tor.primus.ca!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: faa64,b173b9eb855adfb5,start X-Google-Attributes: gidfaa64,public X-Google-Thread: 1038f7,b173b9eb855adfb5,start X-Google-Attributes: gid1038f7,public X-Google-Thread: fc9ab,b173b9eb855adfb5,start X-Google-Attributes: gidfc9ab,public X-Google-Thread: 11033e,b173b9eb855adfb5,start X-Google-Attributes: gid11033e,public X-Google-Thread: 1154bf,b173b9eb855adfb5,start X-Google-Attributes: gid1154bf,public X-Google-Thread: 100c5f,b173b9eb855adfb5,start X-Google-Attributes: gid100c5f,public X-Google-ArrivalTime: 2002-03-30 20:40:22 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!feed2.news.rcn.net!rcn!netnews.com!xfer02.netnews.com!feed.cgocable.net!feed.tor.primus.ca!feed.nntp.primus.ca!news.tor.primus.ca!not-for-mail From: "Mark" <me@here.com> Newsgroups: ahn.tech.linux,alive.computers.software.os.linux,alt.comp.linux,alt.linux,alt.os.linux,alt.os.linux.redhat Subject: IPTABLES problems Lines: 55 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <Vqwp8.38406$jL3.588838979@news.tor.primus.ca> Date: Sun, 31 Mar 2002 04:40:21 GMT NNTP-Posting-Host: 209.90.140.104 X-Complaints-To: news@primus.ca X-Trace: news.tor.primus.ca 1017549621 209.90.140.104 (Sat, 30 Mar 2002 23:40:21 EST) NNTP-Posting-Date: Sat, 30 Mar 2002 23:40:21 EST Organization: Primus Canada