sfx2000
Part of the Furniture
I am a very long way from the servers in New York.
I think it's probably your server and the routing in between..
I am a very long way from the servers in New York.
I'm getting the following error when trying to start the Wireguard although the file is there. Any suggestions?
Navigate to the directory, e.g. cd /opt/etc/init.d. Then, issue the command to list the directory contents so the owner and file permissions show up. (ls -l)
Thanks for the reply. I did that and it looks like the following.
Do you have AMTM installed? Try updating entware using the menu option 3 if the update option appears. Then, see if you still have problems.
View attachment 16493
Navigate to the directory. Issue the commandI downloaded AMTM and updated entware. I also played around a bit more and now I'm at permission denied. So progress is being made. What's next?
chmod 755 s50wireguard
Capital S50 in the first and second images but small s50 in the third image.I downloaded AMTM and updated entware. I also played around a bit more and now I'm at permission denied. So progress is being made. What's next?
Navigate to the directory. Issue the command
to set the file permissions to be executable.Code:chmod 755 s50wireguard
All of the entware packages use a capital "S" and not a lowercase "s" for the start up scripts in /opt/etc/init.d. Something the maintainer may want to change. But it should not impact the ability to start, stop, restart, etc.
Capital S50 in the first and second images but small s50 in the third image.
Did you write starting script yourself?
Try to reinstall wireguard.
Glad you got it working. I can't recall the last time I used Putty. Maybe 4 years ago.Thanks a ton for all the help!
Thanks. When I saved it I didn't know and didn't put the capital S in front. I fixed it when reinstalling and editing all over again.
This has been a learning experience for me, not having used SSH before. But I'm glad it's working and I got some new knowledge along the way.
I reinstalled Wireguard and then I went through the configs all over again (since learning Putty a bit it's way easier) and then it started up properly.
I just bought an RT-AC86U and installed the latest merlin (384.9), entware and WireGuard 0.0.20190227. Have been running this setup for about 12hours and all works great except that I have noticed that 2 times during the day all computers behind the router is refused to connect to internet.
Internally I can reach all servers and I get ip of all host I try to ping but no response on the ping.
I SSH into the router and the router can ping and curl any page so it is obviously able to reach internet. I run /opt/etc/init.d/S50wireguard restart and *POOF* all machine can reach internet again..
Anyone else have this problem? Really frustrating since I cant figure out what it could be
In the router I am using 2 different DNS1 "9.9.9.9" and DNS2 "1.1.1.1"
After installing RMerlin, did you do a full reset to factory defaults and then proceed to minimally and manually configure the router to secure it and connect to your ISP? Did you do a clean install of the scripts and programs mentioned after that?
The first thing I did when I got my router was to just do the minimal thing I could to before I was able to flash it with RMerlin.
But after the flash I started installing entware and wireguard directly after that.
So should I try a full factory reset and then install everything?
Yes. 100% you should. Recommended in the RMerlin readme file you downloaded with the firmware.
See my signature below for detailed steps.
Just . Also noticed that Administrator > Restore/Save/Upload Setting > Factory default (Restore).
Basically:
And then just fixed my wg.conf to comment out the Adress and Dns and put them into S50wireguard .. And it was here I got my slap in the face and told my self OMG RTFM! I forgot the net-stat script last time . So most likely my firewall rebooted at this points that I saw.. At least I have a clean router now
- Reset router
- Install AMTM
- Install Entware from AMTM
- Enable JFFS custom script in Admin > System > Enable JFFS custom scripts and configs
- Added my scripts to /jffs/scripts/post-mount and services-start
- opkg install wireguard_0.0.20190227-ab146d9....
Thanks for the help! Hopefully my router will work properly now
#!/bin/sh
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
sleep 20
Mode=client #server or client
.
.
One issue I had that that the Wireguard startup on router reboot was interfering with the process of getting a WAN IP from my ISP when booting up the router.
To solve this issue I just added a "sleep 20! command into the S50wireguard file.
Now everytime I need to reboot my router or in case of an power outage, when the router is starting up whe WireGuard script is having a 20 seconds delay from starting.
#!/bin/sh
tries=1
while [[ $tries -lt 120 ]]
do
if /bin/ping -c 1 google.com
then
echo "`date` Internet after $tries pings" >> /tmp/home/root/logs-start
/opt/etc/init.d/S50wireguard restart
fi
tries=$((tries+1))
done
Wireguard update from ExpressVPN:
https://www.expressvpn.com/blog/exp...&utm_source=newsletter201903&utm_content=link
Sent from my iPhone using Tapatalk
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!