Networking Forums

Networking Forums > Computer Networking > Linux Networking > Tunneling, TFTP

Reply
Thread Tools Display Modes

Tunneling, TFTP

 
 
Vicky
Guest
Posts: n/a

 
      10-20-2004, 11:57 AM
Hello,

There is a computer (call it "X") with TFTP server
is installed on it.
"X" is in a local network and I want to make me
able to access TFTPd on "X" from the internet.
But there is a problem with connecting TFTPd,
because of NAT -- as far as I know, TFTP uses
the same port (69) to replaying, but NAT changes
numbers of ports. So, TFTPd doesn't work.

It is possible to use "tunneling" to solve accessing
TFTPd from the internet problem.

My question: do I have to change something in "X"
(recompiling kernel with some special options;
reconfigurating system) to do tunneling ?
Or "X" doesn't have to know that there is tunneling
and it works in it ?

Thanks in advance,

Vicky.


 
Reply With Quote
 
 
 
 
Juhan Leemet
Guest
Posts: n/a

 
      10-20-2004, 09:46 PM
On Wed, 20 Oct 2004 13:57:17 +0200, Vicky wrote:
> There is a computer (call it "X") with TFTP server
> is installed on it.
> "X" is in a local network and I want to make me
> able to access TFTPd on "X" from the internet.
> But there is a problem with connecting TFTPd,
> because of NAT -- as far as I know, TFTP uses
> the same port (69) to replaying, but NAT changes
> numbers of ports. So, TFTPd doesn't work.


Not necessarily. NAT primarily does IP address "spoofing". It can also
change port numbers, but it does not have to. IIRC, by default it does
not change port numbers. It depends on how you set it up. How are you
connected from your computer "X"? Through a firewall router (my preferred
option)? Directly via cable modem? Directly via ADSL? What software (O/S,
etc.) are you running on computer "X"? Gateway (if any)?

FWIW, I have setup sshd on one of my machines, and I had my firewall
router redirect the sshd port to my server machine. Worked fine. From
"outside" (my brother's PC in another city, via internet) I was able to
reach my firewall router (via cable modem) and it redirected the ssh port
to my server. As far as I could tell, I was talking directly to my server,
even though I was using the IP address of the cable modem side of my
firewall router. Think it through, one step at a time.

While I haven't done this with tftp, I don't see why it wouldn't work.

BTW, depending on where you are accessing your tftp server, you might
actually have two firewall routers and/or two NATs to worry about: one at
each end of your internet connection.

> It is possible to use "tunneling" to solve accessing
> TFTPd from the internet problem.


I believe so, but I don't think you have to go to that complexity.

> My question: do I have to change something in "X"
> (recompiling kernel with some special options;
> reconfigurating system) to do tunneling ?
> Or "X" doesn't have to know that there is tunneling
> and it works in it ?


Whoa! That is getting far too complicated. Should not be necessary.

--
Juhan Leemet
Logicognosis, Inc.

 
Reply With Quote
 
Vicky
Guest
Posts: n/a

 
      10-21-2004, 06:43 AM
> While I haven't done this with tftp, I don't see why it wouldn't work.

Believe me. Of course I do ports forwarding, as you in your case.
Everything works OK (telnet, my own application), but TFTP not.
I found messages on usenet that it is because TFTP doesn't
like changing port number by NAT.
So, I should reconfigure NAT not to change port number for TFTP,
or use tunneling.


> > My question: do I have to change something in "X"
> > (recompiling kernel with some special options;
> > reconfigurating system) to do tunneling ?
> > Or "X" doesn't have to know that there is tunneling
> > and it works in it ?

>
> Whoa! That is getting far too complicated. Should not be necessary.


OK. So, if I don't change anything in "X", it is not
my problem to do tunneling, but an administrator of
a network.

Vicky.


 
Reply With Quote
 
Fritz
Guest
Posts: n/a

 
      10-26-2004, 01:44 PM
tftp uses UDP packets. have you checked that you are forwarding udp
packets correctly.

Vicky wrote:
>>While I haven't done this with tftp, I don't see why it wouldn't work.

>
>
> Believe me. Of course I do ports forwarding, as you in your case.
> Everything works OK (telnet, my own application), but TFTP not.
> I found messages on usenet that it is because TFTP doesn't
> like changing port number by NAT.
> So, I should reconfigure NAT not to change port number for TFTP,
> or use tunneling.
>
>
>
>>>My question: do I have to change something in "X"
>>>(recompiling kernel with some special options;
>>>reconfigurating system) to do tunneling ?
>>>Or "X" doesn't have to know that there is tunneling
>>>and it works in it ?

>>
>>Whoa! That is getting far too complicated. Should not be necessary.

>
>
> OK. So, if I don't change anything in "X", it is not
> my problem to do tunneling, but an administrator of
> a network.
>
> Vicky.
>
>

 
Reply With Quote
 
Vicky
Guest
Posts: n/a

 
      10-26-2004, 07:04 PM
> tftp uses UDP packets. have you checked that you are forwarding udp
> packets correctly.


Other application which uses UDP works.
There is a patch and option in new kernels (CONFIG_IP_NF_TFTP)
to make TFTP working.

Vicky.


 
Reply With Quote
 
Andrei Ivanov
Guest
Posts: n/a

 
      10-26-2004, 09:00 PM
Fritz <(E-Mail Removed)> wrote:
> tftp uses UDP packets. have you checked that you are forwarding udp
> packets correctly.


And keep in mind the following: when one is sending read/write
request to TFTP server, only destination port number equals to
69. All subsequent data is exchanged between *different* ports
(ne 69, but gt 1024).

--
andrei
 
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
FTP and TFTP karthikbalaguru Linux Networking 8 11-09-2007 05:45 AM
TFTP and FTP karthikbalaguru Linux Networking 4 11-07-2007 09:21 AM
TFTP ping Windows Networking 2 10-27-2005 09:21 AM
TFTP, NAT Vicky Linux Networking 1 10-13-2004 07:27 PM
TFTP Steve Windows Networking 1 10-05-2003 07:36 PM



1 2 3 4 5 6 7 8 9 10 11