PDA

View Full Version : iproute2 or the common network tools?


delpi
15th March 2004, 03:00 PM
Just want to find out what is the standard network tools most people use.

Is it iproute2 or the common ifconfig, route, arp, etc.?

Has iproute2 superseded those venerable tools?

If I want to setup tunneling, how should I do it? Does it concern iproute2?

Thanks...

mhelios
16th March 2004, 04:35 AM
The iproute2 suite is in many ways more superior than the ifconfig, route, etc tools. It contains more powerful features and sometimes clearer output. However, the other tools are still in more common use for basic tasks.

If you want to set up tunnelling, the iproute2 package will certainly help you do it. Look at the syntax here: `/sbin/ip tunnel help`. There's an online socument describing it here:
http://www.linuxgrill.com/iproute2.doc.html#ss9.7

delpi
16th March 2004, 08:56 AM

But the iproute2 'ip tunnel' command cannot encrypt the tunnel.

How can I encrypt it?

Will ip tunneling work if my computer uses an internal IP and is connected to a linksys router? (ie NAT)

mhelios
16th March 2004, 10:37 AM
You may want to look at stunnel, cipe or even ssh for encryption. Are you trying to set up a VPN? I recommend cipe for that. lightweight and easy(ish) to set up.

delpi
16th March 2004, 04:32 PM
I"m trying to create a ssh tunnel for my pop mail with the following command:

ssh -f -C delpi@pop.mymail.com -L 1234: pop.mymail.com:110 sleep 500

Then when issued this command:

telnet localhost 1234

I get connection refused. Is this because I dont have the telnet daemon running on my system?

mhelios
17th March 2004, 10:45 AM
I get connection refused. Is this because I dont have the telnet daemon running on my system?
Indeed it is. Although I'm sure you know the security pitfalls of running telnetd over sshd. Try `ssh localhost -p 1234` instead. Of course, if port 1234 isn't open, you'll again get this error.