TFTP Problem with Wan MPLS Access

All about WTware on Raspberry. WTware works with Raspberry Pi 4, Raspberry Pi 3B+, Pi 3 and Pi 2 devices
http://www.winterminal.com
nicodep
Posts: 27
Joined: Tue Aug 16, 2016 2:26 pm

TFTP Problem with Wan MPLS Access

Post by nicodep »

Hi,

I try to test Wtware solution with Raspberry PI3 and internal SDcard.
I have 90 shops with very low bandwith Wan links (1Mo ADSL), local DHCP server on each shop (router ADSL MPLS), each shop have specific iP range (11.1.x.x/24)

What is the best method ? TFTP or HTTP central server configuration files on my server ? (IP 192.168.1.x/24)


How to update the sdcard with new versions of WTware by night without action from users ?

Thank !
;)
Last edited by nicodep on Thu Sep 29, 2016 7:00 pm, edited 1 time in total.
aka
SUPPORT
SUPPORT
Posts: 939
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: How to distinct

Post by aka »

nicodep wrote:What is the best method ? TFTP or HTTP central server configuration files on my server ? (IP 192.168.1.x/24)
RPi now can only download onfigs from TFTP. Configs are small, it should pass over TFTP without problems.

WTware saves downloaded config. If it fails to download config from TFTP, it will use config downloaded on previous boot.
nicodep wrote:How to update the sdcard with new versions of WTware by night without action from users ?
Sorry, not implemented now. We'll do it a bit later.
nicodep
Posts: 27
Joined: Tue Aug 16, 2016 2:26 pm

Re: How to distinct

Post by nicodep »

Thank Aka !

;)
nicodep
Posts: 27
Joined: Tue Aug 16, 2016 2:26 pm

Re: How to distinct

Post by nicodep »

Hi AKA

I have a problem to connect PI3 via Wan link, the tftp server connection is ok but it won't load config file
I have open port 69 in UDP & TCP from firewall
see the log form Wtware server :

11-30-23-034| [TFTP] Got RRQ, 206 bytes.
11-30-23-034| [TFTP] 00000000: 57 54 77 61 72 65 20 76 2e 35 2e 34 2e 34 34 20
11-30-23-049| [TFTP] 00000010: 61 74 20 42 38 3a 32 37 3a 45 42 3a 34 32 3a 34
11-30-23-049| [TFTP] 00000020: 46 3a 36 33 2c 20 70 6c 61 74 66 6f 72 6d 3d 50
11-30-23-049| [TFTP] 00000030: 69 32 42 2c 20 69 70 3d 31 39 32 2e 31 36 38 2e
11-30-23-049| [TFTP] 00000040: 36 33 2e 34 31 2c 20 73 69 67 6e 3d 46 35 32 43
11-30-23-049| [TFTP] 00000050: 43 45 32 30 34 42 43 36 34 45 35 35 32 45 42 35
11-30-23-065| [TFTP] 00000060: 31 32 31 30 45 46 45 42 43 32 44 34 39 34 37 33
11-30-23-065| [TFTP] 00000070: 43 45 39 30 39 35 43 36 31 43 41 32 46 39 46 34
11-30-23-065| [TFTP] 00000080: 32 34 41 34 33 35 30 35 36 34 32 46 33 33 35 36
11-30-23-065| [TFTP] 00000090: 30 37 36 32 38 38 34 45 33 43 46 38 42 36 34 43
11-30-23-081| [TFTP] 000000a0: 39 44 39 36 44 34 43 38 36 36 44 43 35 35 35 31
11-30-23-081| [TFTP] 000000b0: 39 32 42 32 45 33 44 46 45 39 35 31 44 44 31 46
11-30-23-081| [TFTP] 000000c0: 33 44 46 45 43 31 31 39 39 42 30 34 2e 00
11-30-23-081| [TFTP] WTware v.5.4.44 found at host [], mac B8:27:EB:42:4F:63.
11-30-23-112| [TFTP] Sending WTware TFTP version.
11-30-23-112| [TFTP] Got RRQ, 45 bytes.
11-30-23-128| [TFTP] 00000000: 45 76 65 72 79 6f 6e 65 2f 6c 69 73 74 2e 77 74
11-30-23-128| [TFTP] 00000010: 63 00 6f 63 74 65 74 00 74 73 69 7a 65 00 30 00
11-30-23-128| [TFTP] 00000020: 62 6c 6b 73 69 7a 65 00 31 34 30 30 00
11-30-23-128| [TFTP] Request block size 1400, forced to 1360.
11-30-23-143| [TFTP] Requests file "Everyone\list.wtc". Tsize is requested, blksize 1360 bytes.
11-30-23-143| [TFTP] Sending OASK (tsize 1209, blksize 1360).
11-30-25-081| [TFTP] Timeout occured while transfer "Everyone\list.wtc".
11-30-25-081| [TFTP] Resend block 0.
11-30-27-081| [TFTP] Timeout occured while transfer "Everyone\list.wtc".
11-30-27-081| [TFTP] Resend block 0.
11-30-29-081| [TFTP] Timeout occured while transfer "Everyone\list.wtc".
11-30-29-081| [TFTP] Resend block 0.
11-30-31-081| [TFTP] Timeout occured while transfer "Everyone\list.wtc".
11-30-31-081| [TFTP] Resend block 0.
11-30-33-081| [TFTP] Timeout occured while transfer "Everyone\list.wtc".
11-30-33-081| [TFTP] Resend block 0.
11-30-35-081| [TFTP] Timeout occured while transfer "Everyone\list.wtc".
11-30-35-081| [TFTP] Resend block 0.
11-30-37-081| [TFTP] Timeout occured while transfer "Everyone\list.wtc".
11-30-37-081| [TFTP] Resend block 0.
11-30-39-096| [TFTP] Timeout occured while transfer "Everyone\list.wtc".
11-30-39-096| [TFTP] Resend block 0.
11-30-41-112| [TFTP] Timeout occured while transfer "Everyone\list.wtc".
11-30-41-112| [TFTP] Resend block 0.
11-30-43-128| [TFTP] Timeout occured while transfer "Everyone\list.wtc".
11-30-43-128| [TFTP] Client not responding. Connection closed.
11-30-43-128| [TFTP] Connection closed.
11-30-55-956| [TFTP] Got RRQ, 66 bytes.
11-30-55-956| [TFTP] 00000000: 54 65 72 6d 69 6e 61 6c 73 2f 42 38 2e 32 37 2e
11-30-55-956| [TFTP] 00000010: 45 42 2e 34 32 2e 34 46 2e 36 33 2f 63 6f 6e 66
11-30-55-971| [TFTP] 00000020: 69 67 2e 77 74 63 00 6f 63 74 65 74 00 74 73 69
11-30-55-971| [TFTP] 00000030: 7a 65 00 30 00 62 6c 6b 73 69 7a 65 00 31 34 30
11-30-55-971| [TFTP] 00000040: 30 00
11-30-55-971| [TFTP] Request block size 1400, forced to 1360.
11-30-55-987| [TFTP] Requests file "Terminals\B8.27.EB.42.4F.63\config.wtc". Tsize is requested, blksize 1360 bytes.
11-30-55-987| [TFTP] Sending OASK (tsize 328, blksize 1360).
11-30-57-956| [TFTP] Timeout occured while transfer "Terminals\B8.27.EB.42.4F.63\config.wtc".
11-30-57-956| [TFTP] Resend block 0.
11-30-59-956| [TFTP] Timeout occured while transfer "Terminals\B8.27.EB.42.4F.63\config.wtc".
11-30-59-956| [TFTP] Resend block 0.
11-31-01-956| [TFTP] Timeout occured while transfer "Terminals\B8.27.EB.42.4F.63\config.wtc".
11-31-01-956| [TFTP] Resend block 0.
11-31-03-956| [TFTP] Timeout occured while transfer "Terminals\B8.27.EB.42.4F.63\config.wtc".
11-31-03-956| [TFTP] Resend block 0.
11-31-05-956| [TFTP] Timeout occured while transfer "Terminals\B8.27.EB.42.4F.63\config.wtc".
11-31-05-956| [TFTP] Resend block 0.
11-31-07-971| [TFTP] Timeout occured while transfer "Terminals\B8.27.EB.42.4F.63\config.wtc".
11-31-07-971| [TFTP] Resend block 0.
11-31-09-971| [TFTP] Timeout occured while transfer "Terminals\B8.27.EB.42.4F.63\config.wtc".
11-31-09-971| [TFTP] Resend block 0.
11-31-11-971| [TFTP] Timeout occured while transfer "Terminals\B8.27.EB.42.4F.63\config.wtc".
11-31-11-971| [TFTP] Resend block 0.
11-31-13-987| [TFTP] Timeout occured while transfer "Terminals\B8.27.EB.42.4F.63\config.wtc".
11-31-13-987| [TFTP] Resend block 0.
11-31-15-987| [TFTP] Timeout occured while transfer "Terminals\B8.27.EB.42.4F.63\config.wtc".
11-31-15-987| [TFTP] Client not responding. Connection closed.
11-31-15-987| [TFTP] Connection closed.
11-31-28-425| [TFTP] Got RRQ, 59 bytes.
11-31-28-425| [TFTP] 00000000: 54 65 72 6d 69 6e 61 6c 73 2f 42 38 2e 32 37 2e
11-31-28-425| [TFTP] 00000010: 45 42 2e 34 32 2e 34 46 2e 36 33 2e 77 74 63 00
11-31-28-440| [TFTP] 00000020: 6f 63 74 65 74 00 74 73 69 7a 65 00 30 00 62 6c
11-31-28-440| [TFTP] 00000030: 6b 73 69 7a 65 00 31 34 30 30 00
11-31-28-440| [TFTP] Request block size 1400, forced to 1360.
11-31-28-440| [TFTP] Requests file "Terminals\B8.27.EB.42.4F.63.wtc". Tsize is requested, blksize 1360 bytes.
11-31-28-456| [TFTP] Requested file "C:\ProgramData\WTware\Terminals\B8.27.EB.42.4F.63.wtc" not found.
11-31-28-472| [TFTP] Got RRQ, 48 bytes.
11-31-28-472| [TFTP] 00000000: 45 76 65 72 79 6f 6e 65 2f 64 65 66 61 75 6c 74
11-31-28-472| [TFTP] 00000010: 2e 77 74 63 00 6f 63 74 65 74 00 74 73 69 7a 65
11-31-28-487| [TFTP] 00000020: 00 30 00 62 6c 6b 73 69 7a 65 00 31 34 30 30 00
11-31-28-503| [TFTP] Request block size 1400, forced to 1360.
11-31-28-503| [TFTP] Requests file "Everyone\default.wtc". Tsize is requested, blksize 1360 bytes.
11-31-28-503| [TFTP] Sending OASK (tsize 1937, blksize 1360).
11-31-30-487| [TFTP] Timeout occured while transfer "Everyone\default.wtc".
11-31-30-487| [TFTP] Resend block 0.
11-31-32-489| [TFTP] Timeout occured while transfer "Everyone\default.wtc".
11-31-32-489| [TFTP] Resend block 0.
11-31-34-504| [TFTP] Timeout occured while transfer "Everyone\default.wtc".
11-31-34-504| [TFTP] Resend block 0.
11-31-36-504| [TFTP] Timeout occured while transfer "Everyone\default.wtc".
11-31-36-504| [TFTP] Resend block 0.
11-31-38-504| [TFTP] Timeout occured while transfer "Everyone\default.wtc".
11-31-38-504| [TFTP] Resend block 0.
11-31-40-504| [TFTP] Timeout occured while transfer "Everyone\default.wtc".
11-31-40-504| [TFTP] Resend block 0.
11-31-42-520| [TFTP] Timeout occured while transfer "Everyone\default.wtc".
11-31-42-520| [TFTP] Resend block 0.
11-31-44-520| [TFTP] Timeout occured while transfer "Everyone\default.wtc".
11-31-44-520| [TFTP] Resend block 0.
11-31-46-520| [TFTP] Timeout occured while transfer "Everyone\default.wtc".
11-31-46-520| [TFTP] Resend block 0.
11-31-48-520| [TFTP] Timeout occured while transfer "Everyone\default.wtc".
11-31-48-520| [TFTP] Client not responding. Connection closed.
11-31-48-520| [TFTP] Connection closed.
11-32-00-965| [TFTP] Got RRQ, 44 bytes.
11-32-00-973| [TFTP] 00000000: 45 76 65 72 79 6f 6e 65 2f 61 6c 6c 2e 77 74 63
11-32-00-985| [TFTP] 00000010: 00 6f 63 74 65 74 00 74 73 69 7a 65 00 30 00 62
11-32-00-993| [TFTP] 00000020: 6c 6b 73 69 7a 65 00 31 34 30 30 00
11-32-00-993| [TFTP] Request block size 1400, forced to 1360.
11-32-01-000| [TFTP] Requests file "Everyone\all.wtc". Tsize is requested, blksize 1360 bytes.
11-32-01-011| [TFTP] Sending OASK (tsize 21, blksize 1360).
11-32-02-970| [TFTP] Timeout occured while transfer "Everyone\all.wtc".
11-32-02-970| [TFTP] Resend block 0.
11-32-04-970| [TFTP] Timeout occured while transfer "Everyone\all.wtc".
11-32-04-970| [TFTP] Resend block 0.
11-32-06-970| [TFTP] Timeout occured while transfer "Everyone\all.wtc".
11-32-06-970| [TFTP] Resend block 0.
11-32-09-032| [TFTP] Timeout occured while transfer "Everyone\all.wtc".
11-32-09-032| [TFTP] Resend block 0.
11-32-10-970| [TFTP] Timeout occured while transfer "Everyone\all.wtc".
11-32-10-970| [TFTP] Resend block 0.
11-32-12-970| [TFTP] Timeout occured while transfer "Everyone\all.wtc".
11-32-12-970| [TFTP] Resend block 0.
aka
SUPPORT
SUPPORT
Posts: 939
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: How to distinct

Post by aka »

nicodep wrote:I have a problem to connect PI3 via Wan link, the tftp server connection is ok but it won't load config file
I have open port 69 in UDP & TCP from firewall
1. TFTP uses UDP. TCP not needed.
2. TFTP uses random UDP port. UDP 69 is not enough.

You need VPN to walk over Wan link.
nicodep
Posts: 27
Joined: Tue Aug 16, 2016 2:26 pm

Re: How to distinct

Post by nicodep »

The PI3 is already in VPN MPLS network
I have disable the firewall, all port are now open

The TFTP connection is ok, i can see the trace to the server, but always the same error
Can't download file from server
The same test in my lan, no problem

"Timeout occured while transfer "Everyone\list.wtc"

Problem to route TFTP fromVPN lan to local LAN ?
nicodep
Posts: 27
Joined: Tue Aug 16, 2016 2:26 pm

Re: How to distinct

Post by nicodep »

I Aka,

I always have a problem with the TFTP server and the Raspbery customers through WAN links, no problem on the Lan
I see the TFTP trace on the console logs WTware but impossible to transfer the files list, config, all.wtc

If I use a different TFTP client (TFTP32) on the same site as the Raspberry: no problem to transfer files
==> The problem seems to come from the config Raspberry

an idea ?

;)
aka
SUPPORT
SUPPORT
Posts: 939
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: How to distinct

Post by aka »

Router/gateway IP not specified for the Raspberry?
Give me a log after error. To create log press: Start - All Programs - WTware - Configurator,
Select needed terminal, tab "Logs", press big button "Get log from terminal". When you press this button, many text lines will appear. Then press "Save log".

Second way: enter terminal IP in browser address line from another computer in the network, section Log.
nicodep
Posts: 27
Joined: Tue Aug 16, 2016 2:26 pm

Re: How to distinct

Post by nicodep »

Hi,

See the log at http://www.nicodep.net/WTware1.zip

Yes PI3 have a static IP with the good gtw & routeur
I see the connexion at the Wtware Center, but erro when it's start to transfert

Thank
;)
aka
SUPPORT
SUPPORT
Posts: 939
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: How to distinct

Post by aka »

Something goes wrong. This simplest interaction worked as it should:

09-14-52-355| [ initrd] [ 57.980194] [TFTP] Download file Terminals/B8.27.EB.42.4F.63.wtc from 192.168.1.60.
09-14-52-355| [ initrd] [ 58.043931] [TFTP] Error code 1: File not found.

One packet from the client to the server, one packet from the server to the client.

More complicated interactions with multiple ports do not work.

Can you sniff both communications (WTware and TFTPD32) with Wireshark?
Alon
Posts: 28
Joined: Mon Feb 08, 2016 3:10 pm

Re: How to distinct

Post by Alon »

aka wrote:
nicodep wrote:How to update the sdcard with new versions of WTware by night without action from users ?
Sorry, not implemented now. We'll do it a bit later.
Waiting eagerly for the remote SD card update functionality to be implemented.

It would be a nice addition to see the client status (online/offline) , maybe indicated by the raspberry icon color.

Thank you AKA for your hard work.
aka
SUPPORT
SUPPORT
Posts: 939
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: How to distinct

Post by aka »

Alon wrote:Waiting eagerly for the remote SD card update functionality to be implemented.
It will. HTTPS in embedded web server was done for remote update.
nicodep
Posts: 27
Joined: Tue Aug 16, 2016 2:26 pm

Re: How to distinct

Post by nicodep »

aka wrote:Can you sniff both communications (WTware and TFTPD32) with Wireshark?
Hi,

See the Wireshark log : http://www.nicodep.net/Capture1_wan_KO.zip

And the tracert from Wtware server to PI3

tracert 192.168.63.41
1 <1 ms <1 ms <1 ms 192.168.1.254
2 <1 ms <1 ms <1 ms 10.10.10.250
3 1 ms 1 ms 1 ms 101.0.79.86.rev.sfr.net [86.79.0.101]
4 24 ms 14 ms 14 ms 53.0.79.86.rev.sfr.net [86.79.0.53]
5 121 ms 50 ms 42 ms 192.168.63.41

;)
aka
SUPPORT
SUPPORT
Posts: 939
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: How to distinct

Post by aka »

I see unsuccessfull TFTP communication in sniff.
I don't see successfull TFTP communitation with different TFTP client (TFTP32) on the same site as the Raspberry.
nicodep
Posts: 27
Joined: Tue Aug 16, 2016 2:26 pm

Re: How to distinct

Post by nicodep »

Post Reply