LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-24-2008, 09:03 AM   #1
sevar
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
iptables


Help pls.I have PC with Slackware 12.I wrote in rc.firewall this:
iptables -t nat -A POSTROUTING -o eth0 -s xx.xx.xx.xx -j SNAT --to-source yy.yy.yy.yy but after restart the firewall SNAT is not active.What I have to do to activate rc.firewall.Thanks.

Last edited by sevar; 05-25-2008 at 04:55 AM.
 
Old 05-25-2008, 09:41 AM   #2
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
Did u save iptables after run this command?

make sure

Quote:
/sbin/service iptables save
 
Old 05-25-2008, 10:56 AM   #3
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
Quote:
Originally Posted by sevar View Post
What I have to do to activate rc.firewall.Thanks.
Is /etc/rc.d/rc.firewall set executable?
 
Old 05-25-2008, 12:13 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
The firewall is started in /etc/rc.d/rc.inet2.

If you look at that script, you'll see that the executable status is checked. From the command line, with root privileges, you can type chmod +x /etc/rc.d/rc.firewall. This will change the file properties to being executable. You can do the same thing through a file browser such as konqueror or thunar. Right-click on the file, and select Properties to toggle the executable bits.

For Slackware newbies a great place to auto-generate a firewall script is at Eric's (Alien Bob's) web site: Easy Firewall Generator for IPTables.

If you want additional flexibility, perhaps the following will help:

A Flexible Firewall Strategy
 
  


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 v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:00 AM.

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