LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2020, 07:36 PM   #16
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: Disabled

I would like to ask what should I do to avoid writing wg-quick up each time. How to make it autostart?
 
Old 01-03-2020, 07:54 PM   #17
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
If you want to bring your VPN up automatically when the system starts and there are no VPN depending services, then adding your commands in /etc/rc.d/rc.local (which is executed at the end of the system init) should do it.
http://www.slackware.com/config/init.php

You could write your own rc script (including start stop functions), make it executable and put it in /etc/rc.d/ and then call it from the very beginning of /etc/rc.d/rc.inet2
Use the simple /etc/rc.d/rc.crond for inspiration about the structure.

P.S. Or, you could use NetworkManager to control your wireguard VPN. I have no experience with it, but it looks like supporting wireguard:
https://blogs.gnome.org/thaller/2019...etworkmanager/

Last edited by abga; 01-03-2020 at 07:58 PM. Reason: P.S.
 
1 members found this post helpful.
Old 01-03-2020, 10:21 PM   #18
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by avian View Post
I thought of that, but that "file exists" message appears even on a fresh boot, or when toggling ::/0 but keeping ipv6 when reloading.
User added routing tables shouldn't persist after a reboot, but only the defaults to be found in /etc/iproute2/rt_tables
I just tested your reported problem under the stock 4.4.202 kernel and can confirm it. It looks like it's again caused by the already identified kernel limitation (CONFIG_IPV6_MULTIPLE_TABLES not enabled).
Code:
# ip -6 route flush ::/0 dev eth0 table 51820
# ip -6 route add ::/0 dev eth0 table 51820
RTNETLINK answers: File exists
# ip -6 route show table all | grep 51820
### no results!
### Then, testing the IPv4
#ip -4 route add 10.0.1.0/24 dev eth0 table 51820
#ip -4 route show table all | grep 51820
10.0.1.0/24 dev eth0  table 51820  scope link
In this respect, "RTNETLINK answers: File exists" - should mean: "I can't create that table, go away!"

Then under a kernel where CONFIG_IPV6_MULTIPLE_TABLES=y it works properly:
Code:
# ip -6 route add ::/0 dev eth0 table 51820
# ip -6 route show table all | grep 51820
default dev eth0 table 51820 metric 1024 pref medium
# ip -6 route flush ::/0 dev eth0 table 51820
# ip -6 route show table all | grep 51820
### no results, table cleaned!
 
1 members found this post helpful.
  


Reply

Tags
kernel, module, vpn



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireguard RTNETLINK unInstance Slackware 2 03-26-2020 05:32 PM
LXer: Kali Linux Ethical Hacking Distro Gets 64-Bit Raspberry Pi 3 Image, WireGuard LXer Syndicated Linux News 0 10-30-2018 10:50 PM
WireGuard Mysterious Makefile Wayne Sallee Linux - Security 5 09-20-2018 10:53 AM
LXer: Linus WireGuard Comments, Lubuntu New Direction, LineageOS, OpenWRT, SteamOS | This Week in Linux 34 LXer Syndicated Linux News 0 08-06-2018 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration