LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Networking doubts (https://www.linuxquestions.org/questions/linux-general-1/networking-doubts-98116/)

pongsu 09-29-2003 01:59 AM

Networking doubts
 
hi

1. How can I add and delete a route in my computer’s routing table? What is the command line.

2.What are the commands that are needed to write a script that saves the formatted outputs from a continuously executing instance of ‘netstat’ into a text file?

3. How to enable IP Forwarding in my system??

fatgod 09-29-2003 05:29 AM

1) loaded question man ;) "man route" and have fun ;)

2) "netstat >> targetfile" will appeand a netstat to the file, or "netstat > targetfie" will overwrite the file with the current output. you can setup a cron job to run this however often you want. "man crontab" It looks complex but cron is pretty easy.

3) you want to use iptables to do that. Do you mean port forwarding or ip masquerading? you can do both with iptables. Take a look at some preconfigured firewall scripts I use firegate, that does NAT and port forwarding for my network at home. Search this board. for firegate, I've mentioned it in a post in the past, and some other guy made a post about another one that are was easy to use...
At any rate you can get firegate from here...
http://sourceforge.net/projects/firegate/

Just some ideas ;)

unSpawn 10-02-2003 01:30 PM

//moderator.note: closed. See http://www.linuxquestions.org/questi...572#post513572 why.


All times are GMT -5. The time now is 03:04 PM.