Latest LQ Deal: Latest LQ Deals
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 09-28-2005, 03:01 PM   #1
Registered: Sep 2004
Location: Argentina
Distribution: Slackware 10.1, Knoppix 3.7 es, Debian 3.0
Posts: 37

Rep: Reputation: 15
Iptables ate start-up

Hello All,

I have an old PC working as Gateway to share internet connection.
It has 3 nics: 1 to connect to ISP and the other two to the Local Network, and with Iptables can share the connection.
But any time that has to reboot the machine has to configure again the 2 intefaces Ip addresses for the LAN and run the Iptables commands in order to set the the system again.

Is there anyway to do this automatically?

Old 09-28-2005, 03:14 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
The standard way may vary depending on your distro but a more generic way would be to create a script with your changes in it and then run this from the rc.local script which is run at the end of the boot process.


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
can not start my iptables xudingding Linux - Security 6 10-13-2005 03:30 PM
problem with iptables start ganesh_bhai Linux - Security 4 05-04-2005 05:12 AM
Configuring iptables at start up gezzam Mandriva 2 03-24-2005 02:12 AM
iptables coont start in the beginning dominant Linux - Newbie 4 02-25-2004 08:37 AM
iptables start doesn't work in slack 9 phishintrip Linux - Newbie 4 06-25-2003 02:15 PM > Forums > Linux Forums > Linux - Networking

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