blog:2024:0517_amprd_on_fedora_40
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blog:2024:0517_amprd_on_fedora_40 [2024/05/29 13:55] – davek | blog:2024:0517_amprd_on_fedora_40 [2026/11/23 12:22] (current) – davek | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| The amprd documentation refers to requiring the ipip_redirector for 4.13+ kernels. It's not required for the 6.8.9 kernel that comes with Fedora 40. | The amprd documentation refers to requiring the ipip_redirector for 4.13+ kernels. It's not required for the 6.8.9 kernel that comes with Fedora 40. | ||
| + | |||
| + | Note for the most part the commands require root so put sudo in front of the commands or become root with 'sudo -i' | ||
| ====== ====== | ====== ====== | ||
| + | |||
| ===== ampr.org requests ===== | ===== ampr.org requests ===== | ||
| - | For starters, you'll need an ampr IP address and gateway. Visit the [[http:// | + | For starters, you'll need an ampr IP address, resource record (DNS), |
| - | Note that changes in the portal can take a little while to take effect. For a gateway, I think an hour may be sufficient. But maybe it takes longer - since I was addressing several issues in the beginning, I'm not sure if maybe it took a day to take effect. | + | Note that changes in the portal can take a little while to take effect. For a gateway |
| Your gateway configuration uses the IP address and hostname of the external IP address from which your Fedora machine is visible to ampr.org. The IP address does not need to reverse resolve. If you don't have a spare hostname, configure an ampr.org DNS entry to resolve to your external IP address. If the hostname and IP don't match, the gateway IP entry updates to whatever the hostname resolves to - that's how you'll know you don't have your hostname resolving correctly. | Your gateway configuration uses the IP address and hostname of the external IP address from which your Fedora machine is visible to ampr.org. The IP address does not need to reverse resolve. If you don't have a spare hostname, configure an ampr.org DNS entry to resolve to your external IP address. If the hostname and IP don't match, the gateway IP entry updates to whatever the hostname resolves to - that's how you'll know you don't have your hostname resolving correctly. | ||
| Line 81: | Line 84: | ||
| where the ingress-zone should match the zone of your internal network. Ensure the file permissions are correct for these files. | where the ingress-zone should match the zone of your internal network. Ensure the file permissions are correct for these files. | ||
| - | Finally reload firewalld: < | + | Finally reload firewalld: < |
| ===== amprd ===== | ===== amprd ===== | ||
| Install amprd with: | Install amprd with: | ||
| - | < | + | < |
| - | Edit < | + | Edit the file: < |
| 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 93: | Line 96: | ||
| You don't need to set the rip_password. It hasn't changed in a long time and is compiled into the code. If you are interested in the password, I didn't find it with the -d option as the comment suggests (maybe I was running into other issues at the time) but I did see it using tcpdump. | You don't need to set the rip_password. It hasn't changed in a long time and is compiled into the code. If you are interested in the password, I didn't find it with the -d option as the comment suggests (maybe I was running into other issues at the time) but I did see it using tcpdump. | ||
| + | |||
| + | Amprd wants to save routes in / | ||
| + | |||
| + | The next issue isn't critical but its a little annoying. The systemd service file for amprd says to use amprd' | ||
| + | |||
| + | In general don't modify / | ||
| + | < | ||
| + | cp / | ||
| + | # now edit the file, then... | ||
| + | systemctl daemon-reload | ||
| + | </ | ||
| 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: | ||
| - | < | + | < |
| ===== 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: | ||
| - | < | + | < |
| 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 130: | Line 144: | ||
| If you find that there are so many routes from ripv2 that you can hardly keep track of your own routing configuration, | If you find that there are so many routes from ripv2 that you can hardly keep track of your own routing configuration, | ||
| - | The 2 ampr routes can be configured in the ampr0.nmconnection file like this: | + | The 2 required |
| < | < | ||
| [ipv4] | [ipv4] | ||
| Line 138: | Line 152: | ||
| </ | </ | ||
| - | In order for NetworkManager and amprd not to fight, you'll need to modify the amprd.service file to start with a " | + | In order for NetworkManager and amprd not to fight, you'll need to modify the amprd.service file to start with a " |
| - | < | + | < |
| 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 148: | Line 162: | ||
| 44.0.0.0 | 44.0.0.0 | ||
| 44.128.0.0 | 44.128.0.0 | ||
| + | </ | ||
| + | |||
| + | If you are outside the US, you probably know to swap the /9 and /10 subnets like so: | ||
| + | < | ||
| + | address1=< | ||
| + | route1=44.0.0.0/ | ||
| </ | </ | ||
| {{tag>}} | {{tag>}} | ||
| - | ~~LINKBACK~~ | + | ~~DISCUSSION~~ |
| - | //~~DISCUSSION~~ | + | |
Contact Us
blog/2024/0517_amprd_on_fedora_40.1717016129.txt.gz · Last modified: (external edit)