LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-24-2003, 10:48 PM   #1
anwar_lpk
Member
 
Registered: May 2003
Location: indonesia
Distribution: linux redhat9
Posts: 31

Rep: Reputation: 15
Unhappy iptables and I-net Conn. sharing problems


Dear all of experts,
i experienced a problem during saving my work after configuring the ip tables, or internet connection sharing, see, i've installed redhat 9 shrike onto my system and i setted it up as a server at my office, and i want it to be my default gateway to the internet. here is the problem, after i've configured the iptables rules on the terminal then i try to configure also my clients, its run well, even faster than ever, but when i shut down my linux system and restart it again ishy did i have toreconfigure my server again? its slow down my work ofcourse, cause its doesnt save automatically. i've tryied to sve it using iptables-save, and restore, but still i experience that. help me please!
 
Old 06-25-2003, 02:08 AM   #2
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
put the iptalbes rules in a file called firewall.sh and start the file like so:


[code]
#!/bin/bash/

...rules here...
[code]


then put this line in /etc/rc.local


[code]
sh /path/to/firewall.sh
[code]

make sure you put the path to the firewall.sh file



wow, this got 10 hits before it got a reply.
rc.local gets run last during reboot, but it works
 
Old 06-25-2003, 12:26 PM   #3
anwar_lpk
Member
 
Registered: May 2003
Location: indonesia
Distribution: linux redhat9
Posts: 31

Original Poster
Rep: Reputation: 15
well, thanks for replying, but see, i dont know what you mean with [code] here, what code i should fill in? sorry, iam very newbie in linux Robert. i'll be so thankful if you make detailed on it, will ya? please...
 
  


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
Sharing net from 2 ISPs ?? sys7em Linux - Networking 2 11-20-2005 06:45 AM
sharing net connection with xp machine frosty_kgp Linux - Networking 1 08-23-2005 12:44 AM
Sharing he net connection. BradAus Linux - Networking 1 04-05-2005 04:26 AM
Problems with iptables not allowing internet sharing. ryedunn Linux - Networking 19 02-10-2005 07:23 PM
idea: sharing net connection, method: iptables..., problem: broken net connection :( danny2055 Linux - Networking 4 06-09-2003 07:00 AM

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

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