Virtual Router/ Firewall/ VPN

Reply
New Contributor
Posts: 2
Registered: ‎12-03-2014

Vyatta vRouter - change default port telnet service listens on.

Hello.

 

New to forum. I'm learning vRouter. Tried google. Here now. Tried forum search. No answer found.

 

service {
    telnet {
        listen-address 172.16.0.101
        port 3101
    }
}

 

But incoming to tcp 3101 fails with RST. But to tcp 23 still works.

 

vyatta@R2:~$ sudo su -c 'tcpdump -i eth0 tcp'

16:19:07.796980 IP 10.12.34.3.61520 > 172.16.0.101.3101: Flags [S], seq 2653766581, win 4128, options [mss 536], length 0
16:19:07.797056 IP 172.16.0.101.3101 > 10.12.34.3.61520: Flags [R.], seq 0, ack 2653766582, win 0, length 0

16:19:16.497414 IP 10.12.34.3.39904 > 172.16.0.101.telnet: Flags [S], seq 1101347637, win 4128, options [mss 536], length 0
16:19:16.497488 IP 172.16.0.101.telnet > 10.12.34.3.39904: Flags [S.], seq 3999495576, ack 1101347638, win 14600, options [mss 1460], length 0
16:19:16.507449 IP 10.12.34.3.39904 > 172.16.0.101.telnet: Flags [.], ack 1, win 4128, length 0

vyatta@R2:~$ sudo su -c 'netstat -ntlp'
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 172.16.0.101:23         0.0.0.0:*               LISTEN      2813/busybox    

vyatta@R2:~$ sudo su -c 'lsof -i -n -P'
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
busybox 2813 root    3u  IPv4   7133      0t0  TCP 172.16.0.101:23 (LISTEN)
busybox 2813 root    4u  IPv4  11689      0t0  TCP 172.16.0.101:23->10.12.34.3:56165 (ESTABLISHED)

 

 

 

What am I missing?

New Contributor
Posts: 2
Registered: ‎12-03-2014

Re: Vyatta vRouter - change default port telnet service listens on.

Ok I fix it like this.

 

vyatta@R2:~$ sudo su

root@R2:/home/vyatta# busybox telnetd -p 3101

root@R2:/home/vyatta# lsof -i -n -P
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
busybox 2813 root    3u  IPv4   7133      0t0  TCP 172.16.0.101:23 (LISTEN)
busybox 4954 root    3u  IPv6  12384      0t0  TCP *:3101 (LISTEN)

 

But would be cool to know how to do it w/in Vyatta O/S. Maybe I'm supposed to make CLI change then reboot?

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.