LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2005, 02:01 PM   #1
martincho
Member
 
Registered: Sep 2004
Location: Argentina
Distribution: Debian 10.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?

Regards
Martin
 
Old 09-28-2005, 02:14 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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