Go to advanced search

by XueHai8
Wed Apr 15, 2020 3:35 am
Forum: Advanced users
Topic: Received Packet bps stats?
Replies: 4
Views: 199

Re: Received Packet bps stats?

dickon wrote:
Tue Apr 14, 2020 8:21 am
Easier to read /sys/class/net/eth*/statistics/rx_packets once a second, and count the difference.

Code: Select all

cat /sys/class/net/eth0/statistics/rx_bytes
This looks perfect!
Packets can be different size, so I think bytes works better for my purposes.
And it works on virtual interfaces as well!
Thanks!!!
by XueHai8
Tue Apr 14, 2020 3:58 am
Forum: Advanced users
Topic: Received Packet bps stats?
Replies: 4
Views: 199

Re: Received Packet bps stats?

Found a package, TCPDUMP, that gives me the info I want. Now to just parse it and devise some Al-Gore-Rhythmto determine nexthops weights. :D
by XueHai8
Sun Apr 12, 2020 10:27 am
Forum: Advanced users
Topic: Dynamic Load Balancing - Any experinces?
Replies: 5
Views: 220

Re: Dynamic Load Balancing - Any experinces?

Switching to wireguard is not possible. This issue is not with VPN performance. I get more that fast enough speeds when the internet is not clogged and the ISPs are not being taxed. The issue is when one ISP is having performance problems, then that VPN throughput drops and takes the other one with ...
by XueHai8
Sun Apr 12, 2020 6:01 am
Forum: Advanced users
Topic: Received Packet bps stats?
Replies: 4
Views: 199

Received Packet bps stats?

Does Raspbian have a log file or a package/utility for recording bps of incoming packets over a network interface?
Something where the data can be retrieved programatically?
Thanks!
by XueHai8
Sun Apr 12, 2020 3:42 am
Forum: Advanced users
Topic: Dynamic Load Balancing - Any experinces?
Replies: 5
Views: 220

Re: Dynamic Load Balancing - Any experinces?

Maybe there is a log file or utility package in Rasbian that tracks the incoming packet data rates by interface?
I could parse that and determine how to adjust nexthop weights based on that.
Just an idea...
by XueHai8
Sun Apr 12, 2020 1:19 am
Forum: Advanced users
Topic: Dynamic Load Balancing - Any experinces?
Replies: 5
Views: 220

Dynamic Load Balancing - Any experinces?

This is sort of a continuation of a previous thread: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=268769 Where I was trying to set up dual routing on my Pi (not really load 'balancing'). I got that part working. But still having throughput issues. In Brief: I have remote two RPI OpenVPN s...
by XueHai8
Thu Mar 26, 2020 2:10 am
Forum: Advanced users
Topic: ip route load balancing fails when one server goes down - ideas?
Replies: 6
Views: 218

Re: ip route load balancing fails when one server goes down - ideas?

So, I didn't like having routes to non-existing tuns if/when a vpn client gets disconnected. Though I don't know for sure, I'm betting that it would still try it and clog everything up. So I wrote a little python script with file locking to prevent race conditions that is called via the 'up' and 'do...
by XueHai8
Tue Mar 24, 2020 11:35 am
Forum: Advanced users
Topic: ip route load balancing fails when one server goes down - ideas?
Replies: 6
Views: 218

Re: ip route load balancing fails when one server goes down - ideas?

Ok. looks like like up and down will work in the client.conf files if I disabled these settings: user nobody group nogroup persist-key persist-tun But I don't see a way to dynamically build or destroy the nexthop table depending on which tuns are active. It looks like you need to specify all the nex...
by XueHai8
Tue Mar 24, 2020 10:41 am
Forum: Advanced users
Topic: ip route load balancing fails when one server goes down - ideas?
Replies: 6
Views: 218

Re: ip route load balancing fails when one server goes down - ideas?

The tun for the dead connection is still active - just nothing is coming back. Not sure OpenVPN can detect that., but I'll dig into that. Then I'm not sure how to modify the nexthop list to remove a single hop, but I'll look into that as well and see what I can find. Thanks! This gives me some avenu...
by XueHai8
Tue Mar 24, 2020 1:27 am
Forum: Advanced users
Topic: ip route load balancing fails when one server goes down - ideas?
Replies: 6
Views: 218

ip route load balancing fails when one server goes down - ideas?

Looking for an expert in ip routes. Following the instructions on this web site: https://www.whizzy.org/2012/03/over-engineering-ftw/ ,I have succeeded in setting up load balancing between two VPN servers via two running clients on my PI: A_VPN.conf and B_VPN.conf When using this setup, I see packet...
by XueHai8
Mon Mar 23, 2020 3:09 am
Forum: Troubleshooting
Topic: Buster: Multipe OpenVPN Clients no longer created
Replies: 2
Views: 92

Re: Buster: Multipe OpenVPN Clients no longer created

Disabled all the openvpn...service(s) except openvpn.service and put the client files in /etc/openvpn. Enabled and Started that service and now it works properly.
by XueHai8
Sun Mar 22, 2020 6:11 am
Forum: Troubleshooting
Topic: Buster: Multipe OpenVPN Clients no longer created
Replies: 2
Views: 92

Re: Buster: Multipe OpenVPN Clients no longer created

I tried putting both client files in /etc/openvpn/client/ folder and then:

Code: Select all

sudo systemctl start [email protected]
Job for [email protected] failed because the control process exited with error code.
See "systemctl status [email protected]" and "journalctl -xe" for details.
by XueHai8
Sun Mar 22, 2020 5:47 am
Forum: Troubleshooting
Topic: Buster: Multipe OpenVPN Clients no longer created
Replies: 2
Views: 92

Buster: Multipe OpenVPN Clients no longer created

I have this setup running under Jessie on an old RPI3B+ trying to migrate it to Buster on a Pi4B OpenVPN starts and reads both client .conf files and processes them, but on 1 tun is created. Seems to be whichever one gets connected first: A.config client remote HostA verb 2 nobind mute 20 dev tun0 p...
by XueHai8
Tue Oct 01, 2019 3:26 am
Forum: Advanced users
Topic: ip route - Error: cannot parse nexthop
Replies: 2
Views: 265

Re: ip route - Error: cannot parse nexthop

epoch1970 wrote:
Mon Sep 30, 2019 1:17 pm
I find using "replace" more finicky than "delete" + "add". Is it an option?
Thanks! I'll give that a try!
by XueHai8
Mon Sep 30, 2019 11:56 pm
Forum: Advanced users
Topic: RPI VPN, PiHole, CloudFlare DoH and now Snort?
Replies: 7
Views: 1755

Re: RPI VPN, PiHole, CloudFlare DoH and now Snort?

Here's an update, if anyone cares. the Snort package in Raspbian Buster is 10 YEARS OLD. Snort.org doesn't support it, there are no rule sets to download. So it's basically worthless. The only alternative is to down the source and compile it on the Pi. But... Then it finally hit me, this won't work ...
by XueHai8
Mon Sep 30, 2019 9:18 am
Forum: Advanced users
Topic: RPI VPN, PiHole, CloudFlare DoH and now Snort?
Replies: 7
Views: 1755

Re: RPI VPN, PiHole, CloudFlare DoH and now Snort?

I am proceeding as intended using a Pi4B w/4GB Ram and rebuilding my current VPN, PiHole, Cloudfare server on it. While a PITA, I'm trying to document every step so I can go back and do it again - should I ever need to (gads) Now installing Snort, but not finding any real documentation on setting it...
by XueHai8
Mon Sep 30, 2019 2:05 am
Forum: Advanced users
Topic: ip route - Error: cannot parse nexthop
Replies: 2
Views: 265

ip route - Error: cannot parse nexthop

This worked in Jessie and Stretch, now it breaks in Buster. Even if the tun(s) don't all exist, it still executed without error in previous raspbian builds. /bin/ip route replace default proto static scope global nexthop dev tun0 weight 3 nexthop dev tun1 weight 2 nexthop dev tun2 weight 1 Error: ca...
by XueHai8
Sun Sep 29, 2019 7:20 am
Forum: Troubleshooting
Topic: OpenVPN Client Multiple client.conf files not working
Replies: 1
Views: 194

Re: OpenVPN Client Multiple client.conf files not working

Ok. So here's skinny on Buster. There are 4 open service files in /lib/systemd/system now (used to only be 2): [email protected].service : used to open/run only ONE (1) client conf file in the /etc/openvpn/client folder [email protected].service : used to open/run only ONE (1) server config file in the ...
by XueHai8
Sun Sep 29, 2019 5:32 am
Forum: Troubleshooting
Topic: OpenVPN Client Multiple client.conf files not working
Replies: 1
Views: 194

OpenVPN Client Multiple client.conf files not working

Rasbian Buster. P4B. Wifi connection (for now) I have this configuration on a 3B+ with Stretch and it work fine, but I can't get OpenVPN to read my client files: I have tried putting my client files in /etc/openvpn and /etc/openvpn/client All the client config files end in .conf restarting openvpn d...
by XueHai8
Sat Sep 28, 2019 1:11 pm
Forum: Advanced users
Topic: RPI VPN, PiHole, CloudFlare DoH and now Snort?
Replies: 7
Views: 1755

RPI VPN, PiHole, CloudFlare DoH and now Snort?

So, I have a Pi3B+ running OpenVPN Client, PiHole, and CloudFlare DoH as it is my network gateway, and everything seems to be working fine So, of course, I want to muck it up. I want to add Snort as the IDS/IPS to further secure my network. I understand Snort eats lots of RAM, so I would probably ne...
by XueHai8
Fri Sep 06, 2019 1:48 pm
Forum: Troubleshooting
Topic: RPI4B doesn't see 5Ghz 802.11n or ac network
Replies: 8
Views: 624

Re: RPI4B doesn't see 5Ghz 802.11n or ac network

https://notenoughtech.com/raspberry-pi/2019-raspberry-pi-network-speed-test/ "The latest and greatest! The board comes with a 1Gbit adapter and it’s capable of serving 2.4 GHz and 5 GHz 802.11b/g/n/ac wireless LAN networks. The WiFi shares the bus with USB 2.0 so I’m expecting some serious bottlenec...
by XueHai8
Fri Sep 06, 2019 1:30 pm
Forum: Troubleshooting
Topic: RPI4B doesn't see 5Ghz 802.11n or ac network
Replies: 8
Views: 624

Re: RPI4B doesn't see 5Ghz 802.11n or ac network

Maybe there is a bug in their Wifi regional band settings? These are allow in China, but only those in the 100+ channel ranges show up on the 4B when set to China region. However, when set to US, those in the 30-50 ranges do show up. Capture.PNG I have the channel width set to 'Auto' on my router, b...
by XueHai8
Fri Sep 06, 2019 11:30 am
Forum: Troubleshooting
Topic: RPI4B doesn't see 5Ghz 802.11n or ac network
Replies: 8
Views: 624

Re: RPI4B doesn't see 5Ghz 802.11n or ac network

Apparently, the Pi4B is not capable of 'seeing' 5Ghz networks in the 30-50 channel ranges :cry:
by XueHai8
Wed Sep 04, 2019 8:40 am
Forum: Troubleshooting
Topic: RPI4B doesn't see 5Ghz 802.11n or ac network
Replies: 8
Views: 624

RPI4B doesn't see 5Ghz 802.11n or ac network

Having strange issue here. I have 4 wifi networks, 2x2Ghz & 2x5Ghz, but the Pi4B is only seeing the 2Ghz One of the 5Ghz, call it Z5, is set for 'mixed' on channel 40 The other 5Ghz, call it L5, is set for 'n' on channel 48 I replaced the old Z5 wifi router with a newer one, but transferred all the ...
by XueHai8
Sun Aug 25, 2019 1:45 am
Forum: Troubleshooting
Topic: No Desktop!
Replies: 2
Views: 238

No Desktop!

RPI4B. New install of Raspbian Buster FULL. updated with apt-get update / apt-get upgrade. Installed xscreensaver. Display went black after the set period of time. Moved mouse to wake up. No Trash Can. No Desktop Icons. No Menu Bar. Just the background. Right-mouse click brought up menu to exit Open...

Go to advanced search