<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.acrodus.uk/index.php?action=history&amp;feed=atom&amp;title=Wg-quick_actual_commands</id>
	<title>Wg-quick actual commands - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.acrodus.uk/index.php?action=history&amp;feed=atom&amp;title=Wg-quick_actual_commands"/>
	<link rel="alternate" type="text/html" href="http://wiki.acrodus.uk/index.php?title=Wg-quick_actual_commands&amp;action=history"/>
	<updated>2026-04-04T02:53:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>http://wiki.acrodus.uk/index.php?title=Wg-quick_actual_commands&amp;diff=60&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;This is a reference to what commands are part of the wg-quick command. This is useful when manually setting up a wireguard vpn. Consideration should be given to the ip rule commands, which effectively determine what routing table packets that are encrypted or not use.  $ sudo wg-quick up wg0 [#] ip link add wg0 type wireguard [#] wg setconf wg0 /dev/fd/63 [#] ip -4 address add 10.90.90.2/24 dev wg0 [#] ip link set mtu 1420 up dev wg0 [#] wg set wg0 fwmark 1234 [#] ip -4...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.acrodus.uk/index.php?title=Wg-quick_actual_commands&amp;diff=60&amp;oldid=prev"/>
		<updated>2024-10-28T20:54:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is a reference to what commands are part of the wg-quick command. This is useful when manually setting up a wireguard vpn. Consideration should be given to the ip rule commands, which effectively determine what routing table packets that are encrypted or not use.  $ sudo wg-quick up wg0 [#] ip link add wg0 type wireguard [#] wg setconf wg0 /dev/fd/63 [#] ip -4 address add 10.90.90.2/24 dev wg0 [#] ip link set mtu 1420 up dev wg0 [#] wg set wg0 fwmark 1234 [#] ip -4...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a reference to what commands are part of the wg-quick command. This is useful when manually setting up a wireguard vpn. Consideration should be given to the ip rule commands, which effectively determine what routing table packets that are encrypted or not use.&lt;br /&gt;
&lt;br /&gt;
$ sudo wg-quick up wg0&lt;br /&gt;
[#] ip link add wg0 type wireguard&lt;br /&gt;
[#] wg setconf wg0 /dev/fd/63&lt;br /&gt;
[#] ip -4 address add 10.90.90.2/24 dev wg0&lt;br /&gt;
[#] ip link set mtu 1420 up dev wg0&lt;br /&gt;
[#] wg set wg0 fwmark 1234&lt;br /&gt;
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 1234&lt;br /&gt;
[#] ip -4 rule add not fwmark 51820 table 1234 &lt;br /&gt;
[#] ip -4 rule add table main suppress_prefixlength 0&lt;br /&gt;
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1&lt;br /&gt;
[#] nft -f /dev/fd/63 [#] wg set wg0 private-key /etc/wireguard/wg0.key&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>