Go to advanced search

by XueHai8
Thu Sep 14, 2017 1:29 am
Forum: Troubleshooting
Topic: Distributable Bash Scripts with Predictable Network Interface Names?
Replies: 7
Views: 818

Re: Distributable Bash Scripts with Predictable Network Interface Names?

I'm still unsure where to put a bash script such that on boot it can read and determine the network interface name. rc.local doesn't work - it runs too early (before the network names have been assigned). And @boot in crontab also executes before network names have been assigned. At the moment, I ha...
by XueHai8
Wed Sep 13, 2017 8:32 am
Forum: Troubleshooting
Topic: Distributable Bash Scripts with Predictable Network Interface Names?
Replies: 7
Views: 818

Distributable Bash Scripts with Predictable Network Interface Names?

I realize the latest patch for Stretch disables Predictable Network Interface Names (aka MAC Address Base Network Naming), but this only postpones the inevitable. So my question has to do with writing Bash scripts that can be distributed to any Stretch Pi (PNIN or not) that references a Ethernet or ...
by XueHai8
Sat Aug 26, 2017 1:48 am
Forum: Troubleshooting
Topic: Stretch: Non-existent network names on boot for iptables
Replies: 7
Views: 1205

Re: Stretch: Non-existent network names on boot for iptables

adding net.ifnames=0 only postpones the inevitable of having to deal with this new naming (un)convention. Plus, as I stated earlier, it does not work on wireless adapters.
by XueHai8
Thu Aug 24, 2017 12:56 am
Forum: Troubleshooting
Topic: Stretch: Non-existent network names on boot for iptables
Replies: 7
Views: 1205

Re: Stretch: Non-existent network names on boot for iptables

Thank you all for your responses, but I think my main question was missed: So how can I code an iptables bash script, that needs to run at boot time, to get a network name that doesn't even exist until sometime after the Pi boots - and that is portable to another Pi? With Wait for Network enabled, w...
by XueHai8
Wed Aug 23, 2017 6:16 am
Forum: Troubleshooting
Topic: Stretch: Non-existent network names on boot for iptables
Replies: 7
Views: 1205

Stretch: Non-existent network names on boot for iptables

How to assign network names in iptables on boot when they don't exist yet? Here's an example: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE Set to execute at boot under /etc/rc.local - Hahahahahah - not under Stretch Network adapter names don't exist when rc.local is run, so this don't work e...
by XueHai8
Wed Aug 23, 2017 6:07 am
Forum: Troubleshooting
Topic: Stretch: Start job is running for Hold - Can't Log In
Replies: 1
Views: 1804

Re: Stretch: Start job is running for Hold - Can't Log In

Well, it appears that THIS never happens in Stretch: After=multi-user.target I had that in /lib/systemd/system/[email protected].service, under the [Unit] section and Stretch would never finish booting. The reason is was there, was so that OpenVPN would actually find the specified IP address in 'local' to bi...
by XueHai8
Wed Aug 23, 2017 3:02 am
Forum: Troubleshooting
Topic: Stretch: Start job is running for Hold - Can't Log In
Replies: 1
Views: 1804

Stretch: Start job is running for Hold - Can't Log In

No errors on boot. Last two messages are: [ TIME ] Timed out waiting for device dev-serial1.device [ *** ] A start job is running for Hold until boot process finsishes up (hours and hours / no limit) I can''t log in via SSH. I input my username and Password and it immediately terminates the connecti...
by XueHai8
Tue Aug 22, 2017 3:01 am
Forum: Troubleshooting
Topic: [Solved] Raspbian stretch - how do I restore original Ethernet names
Replies: 24
Views: 15560

Re: [Solved] Raspbian stretch - how do I restore original Ethernet names

This sucks.
It breaks hundreds of client installations.

Did ANYONE think about the millions of Bash Scripts with 'eth0' used in them?
Like for iptables?
by XueHai8
Sun Aug 20, 2017 2:27 pm
Forum: Troubleshooting
Topic: openssl version not compatible with easy-rsa - Stretch
Replies: 5
Views: 8548

Re: openssl version not compatible with easy-rsa - Stretch

Thank you for your reply! I read the Debian bug report before and it amazed me that it was from 8 months ago with no resolution or response. It's also very odd that EASY-RSA 3.0 has been out since 2015, but not incorporated into Debian yet... I will try just using 1.0.0.cnf as 1.1.0.cnf and cross my...
by XueHai8
Sun Aug 20, 2017 9:48 am
Forum: Troubleshooting
Topic: openssl version not compatible with easy-rsa - Stretch
Replies: 5
Views: 8548

Re: openssl version not compatible with easy-rsa - Stretch

Another note. I posted this on the Debian forum hoping for some enlightenment and a user there told me to go away and pound sand as that issue didn't belong on their forum - even though its Debian Sketch and broke there as well... Can't find any help in the OpenVPN.net forums as well. I'm having to ...
by XueHai8
Sat Aug 19, 2017 12:23 am
Forum: Troubleshooting
Topic: openssl version not compatible with easy-rsa - Stretch
Replies: 5
Views: 8548

Re: openssl version not compatible with easy-rsa - Stretch

My post spent a day in purgatory waiting to be approved, and so appeared on the second page when it was release. So I'm trying to bump it back to the top to hopefully get some answers. Thanks you. P.S. Would this work or just really muck things up? : cp /etc/ssl/openssl.cnf /etc/openvpn/easy-rsa/ope...
by XueHai8
Fri Aug 18, 2017 3:51 am
Forum: Troubleshooting
Topic: openssl version not compatible with easy-rsa - Stretch
Replies: 5
Views: 8548

openssl version not compatible with easy-rsa - Stretch

The lastest Raspbian build (Stretch) includes openssl version OpenSSL 1.1.0f 25 May 2017 But the script whichopensslcnf does not recognize that version. It only goes up to 1.0: #!/bin/sh cnf="$1/openssl.cnf" if [ "$OPENSSL" ]; then if $OPENSSL version | grep -E "0\.9\.6[[:alnum:]]?" > /dev/null; the...

Go to advanced search