OK, it's my understanding the source and destination ports are undefined.
I'll just leave the mesh DOWN at this time, as the cross compiler is configured exactly as before, and I am able to compile other software.
Thanks,
-Lynwood KB3VWG
No, that's a wrong understanding.
It seems you do not have the proper header files on your system.
Somehow 'struct udphdr' has a bad definition, since the correct definition has member fields dest and source, and the header files you use define this in some other way.
On 2017-04-17 22:53, lleachii--- via 44Net wrote:
(Please trim inclusions from previous messages) _______________________________________________ OK, it's my understanding the source and destination ports are undefined.
I'll just leave the mesh DOWN at this time, as the cross compiler is configured exactly as before, and I am able to compile other software.
Thanks,
-Lynwood KB3VWG _________________________________________ 44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
|It seems that there are 2 definitions available in ||netinet/udp.h: /* UDP header as specified by RFC 768, August 1980. */#ifdef__FAVOR_BSD structudphdr {u_int16_tuh_sport;/* source port */u_int16_tuh_dport;/* destination port */u_int16_tuh_ulen;/* udp length */u_int16_tuh_sum;/* udp checksum */};#elsestructudphdr {u_int16_tsource;u_int16_tdest;u_int16_tlen;u_int16_tcheck;};#endif So, could you please place a # undef |||__FAVOR_BSD in front of the include files? | |
It seems my previous mail was messed up...
Could you please place a # undef __FAVOR_BSD in front of the include files?
MArius, YO2LOJ
Thanks guys.
I'll work on it more and provide an update.
- Lynwood
All,
I've had success using g++, but I'm still having an issue running it from scripts and command line. Once I work past that I'll be back online for AMPR nodes again (and I'll prepare instructions for any changes between version 15 and 17.
73,
- Lynwood KB3VWG
All,
I successfully upgraded my OpenWRT router to LEDE.
Please check services:
- HTTP: 44.60.44.10 - NTP: 44.60.44.1 - DNS: 44.60.44.3 - Ping/trace from 44/8 IPs and Public IPs - to IPs above
73,
KB3VWG
Not reachable at all.
Neither form broad Internet nor from AMPRNET: 44.165.2/25 44.139.11.30 44.137.40.185
Best regards.
Same for me 44.144.48.0/29 Tried from 44.144.48.2. cannot ping, nor traceroute, nor use e.g. the dns server
73,
Ruben - ON3RVH
-----Original Message----- From: 44Net [mailto:44net-bounces+on3rvh=on3rvh.be@hamradio.ucsd.edu] On Behalf Of SP2L Sent: dinsdag 18 april 2017 20:49 To: 44net@hamradio.ucsd.edu Subject: Re: [44net] OpenWRT 15.05 upgrade to LEDE 17.01.1
(Please trim inclusions from previous messages) _______________________________________________ Not reachable at all.
Neither form broad Internet nor from AMPRNET: 44.165.2/25 44.139.11.30 44.137.40.185
Best regards.
-- Tom - SP2L ------------------------------------ It is nice to be important. But it is more important to be nice!
_________________________________________ 44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
HTTP on 44.60.44.10 is fine from outside 44/8
On 18 April 2017 at 20:03, Ruben ON3RVH on3rvh@on3rvh.be wrote:
(Please trim inclusions from previous messages) _______________________________________________ Same for me 44.144.48.0/29 Tried from 44.144.48.2. cannot ping, nor traceroute, nor use e.g. the dns server
73,
Ruben - ON3RVH
-----Original Message----- From: 44Net [mailto:44net-bounces+on3rvh=on3rvh.be@hamradio.ucsd.edu] On Behalf Of SP2L Sent: dinsdag 18 april 2017 20:49 To: 44net@hamradio.ucsd.edu Subject: Re: [44net] OpenWRT 15.05 upgrade to LEDE 17.01.1
(Please trim inclusions from previous messages) _______________________________________________ Not reachable at all.
Neither form broad Internet nor from AMPRNET: 44.165.2/25 44.139.11.30 44.137.40.185
Best regards.
-- Tom - SP2L
It is nice to be important. But it is more important to be nice!
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
I was able to reach the HTTP from the internet. Now it appears it isn't working. Maybe we accidentally DoS'ed you from sending so much traffic your way?
On Tue, Apr 18, 2017 at 12:49 PM SP2L SP2L@wp.pl wrote:
(Please trim inclusions from previous messages) _______________________________________________ Not reachable at all.
Neither form broad Internet nor from AMPRNET: 44.165.2/25 44.139.11.30 44.137.40.185
Best regards.
-- Tom - SP2L
It is nice to be important. But it is more important to be nice!
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
I concur. 44.60.44.10 _IS_ reachable right now from Internet only.
Mike,
Actually, I noticed that the RAW filter in iptables wasn't working. This is where I place the ipencap input command so I don't get duplicate netflow for the packets on the WAN (encapsulated) and AMPRLAN (de-encapsulated) side.
I had to fix it by adding the package kmod-ipt-raw.
It should be online and accessible from AMPRNet now.
- Lynwood KB3VWG
PS: I do have DDoS rules for DNS and HTTP, but they don't appear to have alarmed.
I concur. Right now all IP's are reachable from AMPRNet but not from Internet.
Tom and Ruben,
traceroute to 44.165.2.4 (44.165.2.4), 30 hops max, 60 byte packets 1 kb3vwg-001.ampr.org (44.60.44.1) 1.385 ms 1.392 ms 1.593 ms 2 mail.sp2l.ampr.org (44.165.2.2) 154.783 ms 171.077 ms 171.653 ms 3 home.sp2l.ampr.org (44.165.2.4) 171.674 ms 171.668 ms 171.650 ms
traceroute to 44.139.11.30 (44.139.11.30), 30 hops max, 60 byte packets 1 kb3vwg-001.ampr.org (44.60.44.1) 0.722 ms 0.699 ms 0.926 ms 2 amprgw.oh2nxx.ampr.org (44.139.11.254) 124.246 ms 124.551 ms 124.545 ms 3 * * * 4 * * * 5 * * * 6 * * *
traceroute to 44.137.40.185 (44.137.40.185), 30 hops max, 60 byte packets 1 kb3vwg-001.ampr.org (44.60.44.1) 0.798 ms 0.800 ms 1.122 ms 2 gw-44-137.pi9noz.ampr.org (44.137.0.1) 98.127 ms 98.515 ms 98.534 ms 3 gw-44-137.pi9noz.ampr.org (44.137.0.1) 98.781 ms 98.773 ms 99.979 ms
traceroute to 44.144.48.2 (44.144.48.2), 30 hops max, 60 byte packets 1 kb3vwg-001.ampr.org (44.60.44.1) 0.670 ms 0.686 ms 0.810 ms 2 44.144.48.1 (44.144.48.1) 96.304 ms 111.093 ms 111.155 ms 3 * * * 4 * * * 5 * * *
Lynwood
You may try 44.139.11.30 right now. It's my smartphone...
Yeah might still have icmp blocked on the host. Will have to check but at least you get to my router so everything should be good on both ends :)
Sent from my iPhone
On 18 Apr 2017, at 22:01, lleachii--- via 44Net 44net@hamradio.ucsd.edu wrote:
(Please trim inclusions from previous messages) _______________________________________________ Tom and Ruben,
traceroute to 44.165.2.4 (44.165.2.4), 30 hops max, 60 byte packets 1 kb3vwg-001.ampr.org (44.60.44.1) 1.385 ms 1.392 ms 1.593 ms 2 mail.sp2l.ampr.org (44.165.2.2) 154.783 ms 171.077 ms 171.653 ms 3 home.sp2l.ampr.org (44.165.2.4) 171.674 ms 171.668 ms 171.650 ms
traceroute to 44.139.11.30 (44.139.11.30), 30 hops max, 60 byte packets 1 kb3vwg-001.ampr.org (44.60.44.1) 0.722 ms 0.699 ms 0.926 ms 2 amprgw.oh2nxx.ampr.org (44.139.11.254) 124.246 ms 124.551 ms 124.545 ms 3 * * * 4 * * * 5 * * * 6 * * *
traceroute to 44.137.40.185 (44.137.40.185), 30 hops max, 60 byte packets 1 kb3vwg-001.ampr.org (44.60.44.1) 0.798 ms 0.800 ms 1.122 ms 2 gw-44-137.pi9noz.ampr.org (44.137.0.1) 98.127 ms 98.515 ms 98.534 ms 3 gw-44-137.pi9noz.ampr.org (44.137.0.1) 98.781 ms 98.773 ms 99.979 ms
traceroute to 44.144.48.2 (44.144.48.2), 30 hops max, 60 byte packets 1 kb3vwg-001.ampr.org (44.60.44.1) 0.670 ms 0.686 ms 0.810 ms 2 44.144.48.1 (44.144.48.1) 96.304 ms 111.093 ms 111.155 ms 3 * * * 4 * * * 5 * * *
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
Traceroute from Linux fails too...
I just enabled UDP traceroute from 44 addresses and GW IPs.
I have an iptables rule to drop packets with a TTL <= 7. I configured that before I implemented dynamic filtering with ipset. I simply added a rule before it using the dynamic table to allow you all to trace as well.
Let me know.
- Lynwood
Marius and all,
I forgot to note, I HAD to add this line to ampr-ripd.c to make it compile with g++ for ampr-ripd 1.16.3:
+ #define IPPORT_ROUTESERVER 520
The following are the commands, assuming the uncompressed tools provided by OpenWRT or LEDE (account for version, device CPU, C version name, etc. in different filenames, refer to links in AMPR Wiki for OpenWRT for more information) are put at /home/user/ :
# wget toolchain for target OS Version and CPU from LEDE or OpenWRT site # wget source code # untar both # sudo mkdir /build/lede-17.01/slaves/phase1/ar71xx_generic/build # copy staging_dir directory there
unset SED export STAGING_DIR=/home/user/lede-sdk-17.01.1-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16 export TOOLCHAIN_DIR=$STAGING_DIR export LDCFLAGS=$TOOLCHAIN_DIR/lib export LD_LIBRARY_PATH=$TOOLCHAIN_DIR/lib export PATH=$TOOLCHAIN_DIR/bin:$PATH cd /home/user/ampr-ripd-1.16.3
mips-openwrt-linux-musl-g++ ampr-ripd.c -v -fpermissive -Wwrite-strings
The a.out file is your executable binary file!
- Lynwood KB3VWG