PDA

Bekijk de volledige versie : Telnet on wan interface?



adams
29-07-2007, 12:03
An absolute n00b here. Can somebody please tell how to edit the rc.local file to enable the telnet daemon on wan interface.

I want it running on wan interface because i want to control the router remotely, is there any better way of doing this other than enabling telnet on wan?

thanks

gratitude182
29-07-2007, 18:59
you have to install the custom firmware from kfurge.

then you can install dropbear for ssh. then open the ssh port for wan in the rc.local with iptables.

grat182

adams
29-07-2007, 19:16
yeah i am running kfurge's firmware. can rc.local be edited to open telnet on wan port? for example by editing the following line in rc.local


# Start utelnetd on local interface only!
/apps/bin/utelnetd -i br0 &

LeperKing
29-07-2007, 19:39
An absolute n00b here.

Are you aware of the security risks of enabling telnet on the WAN?;)

LK

adams
30-07-2007, 05:53
I plan to do it only for a short period of time, but can telnet be password protected on the wl700g? Also is dropbear runnning on wan more secure than telnet with password access?

gratitude182
30-07-2007, 09:13
yes, it's more secure because of ssh. install it, and use it like nooben has written. you can also use another port --> google

http://www.wl500g.info/showthread.php?t=7728

grat182

adams
30-07-2007, 21:20
Thanks gratitude182 and leperking for ur reponses

@gratitude this post of yours did the trick :D http://wl500g.info/showpost.php?p=47070&postcount=17

I can now run telnet from wan

Dropbear is also running both on LAN and WAN but i cant login..get access denied..can u pls post how exactly u got dropbear to work..

gratitude182
30-07-2007, 22:32
do you have gave you supreme permissions in /opt/etc/sudoers?

root ALL=(ALL) ALL
yourusername ALL=(ALL) ALL

do you have in /etc/shells the following lines:

/opt/bin/bash
/bin/sh

and modified /etc/passwd?
aslike there:

http://home.comcast.net/~kfurge/passwd

then it should work

grat182

PS: close the telnet from wan for security!!!

adams
31-07-2007, 18:05
Ok, i figured it out thanks :)