LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-01-2006, 04:28 PM   #1
brunog
Member
 
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 04:41 PM.
 
Old 01-01-2006, 05:07 PM   #2
grimse
Member
 
Registered: Oct 2004
Location: Oldenburg, Germany
Distribution: FC4
Posts: 42

Rep: Reputation: 15
hi.
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, 05:35 PM   #3
brunog
Member
 
Registered: Aug 2005
Posts: 32

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


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
Dual Boot Windows XP & FC4 with FC4 already installed kt8993 Linux - General 8 10-18-2006 04:26 PM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08: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 11:50 AM
FC4 Why bother? (Another FC4 Rant) myutopia Fedora 1 06-30-2005 03:30 AM
Converting a FC4 dvd to FC4 cd set? prem1000 Fedora 2 06-17-2005 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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