Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-01-2006, 05:28 PM   #1
Registered: Aug 2005
Posts: 32

Rep: Reputation: 15
FC4 - iptables

hello everyone,

I have fedora core 4 installed w/ all the updates.

how do i make it so a certain command runs every time i restart the comp?

i need this to run this instead of typing it in each time.

"iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward"

Thanks in advance for any help.

Last edited by brunog; 01-01-2006 at 05:41 PM.
Old 01-01-2006, 06:07 PM   #2
Registered: Oct 2004
Location: Oldenburg, Germany
Distribution: FC4
Posts: 42

Rep: Reputation: 15
you can use "iptables-save" to save the iptables-configuration. for ip-forwarding you can write the command in "/etc/rc.d/rc.local".

greetings, grim
Old 01-01-2006, 06:35 PM   #3
Registered: Aug 2005
Posts: 32

Original Poster
Rep: Reputation: 15
exactly what im looking for. thanks.


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
Dual Boot Windows XP & FC4 with FC4 already installed kt8993 Linux - General 8 10-18-2006 05:26 PM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 09:20 PM
FC4 eMachines ndiswrapper problem (don't think it has anything to do with FC4) unknownmosquito Linux - Laptop and Netbook 2 12-04-2005 12:50 PM
FC4 Why bother? (Another FC4 Rant) myutopia Fedora 1 06-30-2005 04:30 AM
Converting a FC4 dvd to FC4 cd set? prem1000 Fedora 2 06-17-2005 03:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:33 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