Networking Forums

Networking Forums > Computer Networking > Linux Networking > Where does inetd listen ? Tunnel setup ?

Reply
Thread Tools Display Modes

Where does inetd listen ? Tunnel setup ?

 
 
DRN
Guest
Posts: n/a

 
      11-17-2008, 12:28 PM
From a relative newbie...
I have an embedded box running a 2.4.23 kernel.
Its got inetd configured for telnet and ftp (both work AOK from a
local connection).
I am trying to access the box via an openvpn tunnel.
I can launch the tunnel OK (over PPP, also running OK).
When I try to telnet or FTP to the other end of the tunnel, nothing
happens.
The tunnel-provider swears the request packets are forwarded to the
embedded box...

So - where does inetd listen for requests ?
What if anything do I need to do to the route table so that inetd
listens for requests from the tunnel ?
Any tips on how to debug, including tools to log what's showing up via
the tunnel ?

Thanks in advance for any help,
Best Regards, Dave

PS: here are the default and a suggested route setting; neither
worked...
netstat -nlp|grep 21
netstat -nlp|grep 23
route

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 96/inetd
udp 0 0 0.0.0.0:1024 0.0.0.0:* 217/openvpn
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 96/inetd
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.2.161 10.8.2.165 255.255.255.255 UGH 0 0 0 tun0
10.0.0.1 * 255.255.255.255 UH 0 0 0 ppp0
10.8.2.165 * 255.255.255.255 UH 0 0 0 tun0
default * 0.0.0.0 U 0 0 0 ppp0

>>>> Change default route per suggestions, report again...


route del default
route add default dev tun0

netstat -nlp|grep 21
netstat -nlp|grep 23
route

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 96/inetd
udp 0 0 0.0.0.0:1024 0.0.0.0:* 217/openvpn
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 96/inetd
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.2.161 10.8.2.165 255.255.255.255 UGH 0 0 0 tun0
10.0.0.1 * 255.255.255.255 UH 0 0 0 ppp0
10.8.2.165 * 255.255.255.255 UH 0 0 0 tun0
default * 0.0.0.0 U 0 0 0 tun0
 
Reply With Quote
 
 
 
 
Chris Davies
Guest
Posts: n/a

 
      11-17-2008, 04:41 PM
DRN <(E-Mail Removed)> wrote:
> I have an embedded box running a 2.4.23 kernel.
> Its got inetd configured for telnet and ftp (both work AOK from a
> local connection).
> I am trying to access the box via an openvpn tunnel.
> I can launch the tunnel OK (over PPP, also running OK).


Have you really confirmed that PPP's working? What about the tunnel? Can
you ping the remote transport point?

If you're using PPP to connect to the embedded device, do you need
OpenVPN on the top of that?


> Any tips on how to debug, including tools to log what's showing up via
> the tunnel ?


tshark -i ppp0 -nlp # Monitor PPP layer traffic
tshark -i tun0 -nlp # Monitor OpenVPN layer traffic
openvpn --verbose 5 # Run OpenVPN protocol/application with logging

I would suggest you first concentrate on something like ping, and then
once you've got that running you may well find that telnet and ftp fall
into place.

Chris
 
Reply With Quote
 
DRN
Guest
Posts: n/a

 
      11-17-2008, 08:15 PM
On Nov 17, 12:41*pm, Chris Davies <chris-use...@roaima.co.uk> wrote:
> DRN <d...@nadler.com> wrote:
> > I have an embedded box running a 2.4.23 kernel.
> > Its got inetd configured for telnet and ftp (both work AOK from a
> > local connection).
> > I am trying to access the box via an openvpn tunnel.
> > I can launch the tunnel OK (over PPP, also running OK).

>
> Have you really confirmed that PPP's working? What about the tunnel? Can
> you ping the remote transport point?
>
> If you're using PPP to connect to the embedded device, do you need
> OpenVPN on the top of that?
>
> > Any tips on how to debug, including tools to log what's showing up via
> > the tunnel ?

>
> tshark -i ppp0 -nlp * * # Monitor PPP layer traffic
> tshark -i tun0 -nlp * * # Monitor OpenVPN layer traffic
> openvpn --verbose 5 * * # Run OpenVPN protocol/application with logging
>
> I would suggest you first concentrate on something like ping, and then
> once you've got that running you may well find that telnet and ftp fall
> into place.
>
> Chris


Apologies, should have clarified that:
ping works from the embedded box out to the internet via PPP, and also
via the tunnel.

Thanks !
Best Regards, Dave
 
Reply With Quote
 
DRN
Guest
Posts: n/a

 
      11-17-2008, 09:06 PM
On Nov 17, 12:41*pm, Chris Davies <chris-use...@roaima.co.uk> wrote:
> DRN <d...@nadler.com> wrote:
> > I have an embedded box running a 2.4.23 kernel.
> > Its got inetd configured for telnet and ftp (both work AOK from a
> > local connection).
> > I am trying to access the box via an openvpn tunnel.
> > I can launch the tunnel OK (over PPP, also running OK).

>
> Have you really confirmed that PPP's working? What about the tunnel? Can
> you ping the remote transport point?
>
> If you're using PPP to connect to the embedded device, do you need
> OpenVPN on the top of that?
>
> > Any tips on how to debug, including tools to log what's showing up via
> > the tunnel ?

>
> tshark -i ppp0 -nlp * * # Monitor PPP layer traffic
> tshark -i tun0 -nlp * * # Monitor OpenVPN layer traffic
> openvpn --verbose 5 * * # Run OpenVPN protocol/application with logging
>
> I would suggest you first concentrate on something like ping, and then
> once you've got that running you may well find that telnet and ftp fall
> into place.
>
> Chris


Sadly, no tshark in this distro.
I'll crank up the --verbose in openvpn and see it I get any helpful
info.

Thanks again,
Best Regards, Dave
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      11-17-2008, 09:17 PM
Hello,

DRN a écrit :
>
> Sadly, no tshark in this distro.


The 2.4.23 kernel is quite old, so the distro may be old too. Tshark,
the console version of wireshark, was previously named tethereal, as the
console version of ethereal. You can try tcpdump too.
 
Reply With Quote
 
DRN
Guest
Posts: n/a

 
      11-17-2008, 09:46 PM
On Nov 17, 5:17*pm, Pascal Hambourg <boite-a-s...@plouf.fr.eu.org>
wrote:
> DRN a écrit :
> > Sadly, no tshark in this distro.

>
> The 2.4.23 kernel is quite old, so the distro may be old too. Tshark,
> the console version of wireshark, was previously named tethereal, as the
> console version of ethereal. You can try tcpdump too.


Sadly, tcpdump, ethereal, and tethereal are not present either...
Thanks though,
Best Regards, Dave
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      11-18-2008, 09:51 AM
DRN a écrit :
>
> Sadly, tcpdump, ethereal, and tethereal are not present either...



If you cannot install a packet sniffer then you may use iptables rules
with the LOG target, although this is less convenient and provides less
information about logged packets.
 
Reply With Quote
 
DRN
Guest
Posts: n/a

 
      11-18-2008, 02:04 PM
Hi All - Thanks for the suggestions offered; let me clarify the
situation (apologies if I wasn't clear), and repeat a specific
question:

Clarifications
- I'm trying to set up a tunnel so I can remotely ftp or telnet into
the box
- The embedded box is running kernel 2.4.23
- It is an embedded machine without a full distro
- netfilter (including iptable etc) is not built into the kernel
- after launching PPPD, I can ping the internet via PPP
- after constructing an openvpn tunnel, I can ping the internet via
the tunnel
- inetd seems properly configured as I can telnet or ftp into the box
from a local connection

A specific question
- Where does inetd listen for requests ? What if anything do I need to
do to the route table so that inetd listens for requests from the
tunnel ?

Again, Thanks in advance for any help,
Best Regards, Dave

PS: Suggestions for specific tutorials that would help would also be
appreciated !
 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      11-18-2008, 02:57 PM
DRN <(E-Mail Removed)> wrote:
> Sadly, no tshark in this distro.


Formerly known as tcpdump. Takes the same parameters.
Chris
 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      11-18-2008, 03:00 PM
DRN <(E-Mail Removed)> wrote:
> Clarifications
> - I'm trying to set up a tunnel so I can remotely ftp or telnet into
> the box


What are the endpoints? Your client PC and your embedded system? Something else?


> - after launching PPPD, I can ping the internet via PPP


PPP links what to what? The embedded box to the Internet?

> - after constructing an openvpn tunnel, I can ping the internet via
> the tunnel


Likewise. I'm not clear on what your tunnel is connecting.


> - Where does inetd listen for requests?


Usually INADDR_ANY (i.e. everwhere), so you don't need to kick it to
listen on multiple interfaces.

Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing setup with VPN tunnel Doug Weiman Linux Networking 4 07-31-2011 05:00 PM
Setup sshd to listen to two ports ? Rikishi 42 Linux Networking 7 08-15-2007 12:21 PM
A question about a tunnel setup Dirk Laurenz Linux Networking 0 04-25-2007 08:54 PM
DHCP server setup on RH Linux - Not configured to listen on any interfaces! KAL Linux Networking 1 12-12-2006 10:19 AM
Specifying multiple IPs to listen for inetd Frank Linux Networking 2 08-24-2004 02:54 AM



1 2 3 4 5 6 7 8 9 10 11