User Tools

Site Tools


blog:2024:0517_amprd_on_fedora_40

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blog:2024:0517_amprd_on_fedora_40 [2024/06/05 16:18] – [firewalld] davekblog:2024:0517_amprd_on_fedora_40 [2026/11/23 12:22] (current) – davek
Line 88: Line 88:
 ===== amprd ===== ===== amprd =====
 Install amprd with: Install amprd with:
-<code>sudo dnf install amprd</code>+<code>dnf install amprd</code>
  
-Edit <code>/etc/amprd.conf</code>+Edit the file: <code>/etc/amprd.conf</code>
 Define an ampr0 section. Enter your new 44 IP address into prefix with /9 or /10 depending on your allocation. That will enable respective 44 traffic to be routed out the tunnel. If you want just a smaller subnet, use a narrower CIDR. Define an ampr0 section. Enter your new 44 IP address into prefix with /9 or /10 depending on your allocation. That will enable respective 44 traffic to be routed out the tunnel. If you want just a smaller subnet, use a narrower CIDR.
  
Line 109: Line 109:
  
 Start up the amprd service and if you feel ready, enable it also to start on boot. To start it: Start up the amprd service and if you feel ready, enable it also to start on boot. To start it:
-<code>sudo systemctl start amprd</code>+<code>systemctl start amprd</code>
  
 ===== Try it out ===== ===== Try it out =====
 A couple of tcpdumps will let you look at what's going on. On your external interface you can monitor the traffic going to the internet and the encapsulated IPIP traffic: A couple of tcpdumps will let you look at what's going on. On your external interface you can monitor the traffic going to the internet and the encapsulated IPIP traffic:
-<code>sudo tcpdump -nnvi eno2 host 169.228.34.84</code>+<code>tcpdump -nnvi eno2 host 169.228.34.84</code>
  
 169.228.34.84 is the amprnet gateway. The host directive will only show you traffic going to amprnet and not flood your console will all your other internet traffic. 169.228.34.84 is the amprnet gateway. The host directive will only show you traffic going to amprnet and not flood your console will all your other internet traffic.
Line 152: Line 152:
 </code> </code>
  
-In order for NetworkManager and amprd not to fight, you'll need to modify the amprd.service file to start with a "network-online" target. To do this, copy the system amprd.service script into the /etc tree: +In order for NetworkManager and amprd not to fight, you'll need to modify the amprd.service file to start with a "network-online" target. To do this, copy the system amprd.service file into the /etc tree: 
-<code>sudo cp /usr/lib/systemd/system/amprd.service /etc/systemd/system</code>+<code>cp /usr/lib/systemd/system/amprd.service /etc/systemd/system</code>
  
 Edit the /etc copy of the file and change the After directive to: Edit the /etc copy of the file and change the After directive to:
Line 172: Line 172:
 {{tag>}} {{tag>}}
  
-~~LINKBACK~~ +~~DISCUSSION~~
-//~~DISCUSSION~~+
Contact Us blog/2024/0517_amprd_on_fedora_40.1717629511.txt.gz · Last modified: (external edit)