Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I added some ipchains #ipchains -A .... but when I reboot they are gone. I need these to be loaded at startup how/where/what do I need to do to save these changes? Also I did a /sbin/route add -net ...and when I reboot that change is gone too. What do I need to do to save it? I am kind of new at this so I need some pretty explicit instructions as "you need to place these files in a location where they will be executed" isn't much help since I don't know much about Linux.
thanks,
jim
First of all u have the command "history" which is a log of the last x commands executed. If it isnt cut off to the last say 10 commands, executing "history > history.log" (w/o quotes) will output it all to a file named history.log.
look up the valid IPChains rules and save em in another file, dont forget to dump the line numbers which are a part of the history command.
Now to add the chains uve got to find where it is started from which is usually from /etc/rc.d. look for an executable script called something like "rc.firewall" names differ per distro. Open it and add the lines u saved previously.
Execute the firewall script to see if it is working correct.
The routes can be found in (again different per distro I guess) /etc/sysconfig/static-routes, add em there.
Well...I am not sure if I am doing something wrong or what. I am very new to Linux and I have been reading the howto's and trying to follow the suggestions but I am missing something. When I edited the rc.firewall file under the PPTP section(there were already ipchains there for the 192.168.1.x subnet) and rebooted the changes were there. However, when I did a ipchains -L forward, they did not show up under the listing.
Is there a reason that the ipchains that I added to the rc.firewall are not showing up when I do a ipchains -L forward?
thanks,
jim
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.