From 4141cf6b46ba3e2bdb94b4815e993e465956b44d Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Wed, 19 Feb 2025 10:36:36 +0100 Subject: [PATCH] . --- .gitignore | 3 -- README.md | 7 ----- ipfire/ipfire_ipalias.md | 51 ---------------------------------- ipfire/ipfire_ipalias_green.md | 24 ---------------- 4 files changed, 85 deletions(-) delete mode 100644 .gitignore delete mode 100644 README.md delete mode 100644 ipfire/ipfire_ipalias.md delete mode 100644 ipfire/ipfire_ipalias_green.md diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 9dead23..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.md.txt -start.txt - diff --git a/README.md b/README.md deleted file mode 100644 index 2aa19e3..0000000 --- a/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# WARNUNG! - -## ÖFFENTLICHE Dokumentation! - -Alle Dokumente in diesem Repository sind via DokuWiki - Ö F F E N T L I C H - lesbar! - -Michael H.G. Schmidt diff --git a/ipfire/ipfire_ipalias.md b/ipfire/ipfire_ipalias.md deleted file mode 100644 index 299ef97..0000000 --- a/ipfire/ipfire_ipalias.md +++ /dev/null @@ -1,51 +0,0 @@ -# Howto add IP aliases on ppp0 in IPfire - -Let's say you have a /29 network on your DSL subscriber (dial) line: 212.218.10.64/29. - -In that case you could use six ip adresses (65 to 70) as public addresses for machines or services behind your firewall. - -According to this [thread](https://community.ipfire.org/t/adding-aliases-to-red-interface/552) and this [thread](https://community.ipfire.org/t/a-red-interface-in-pppoe-and-have-two-public-ip/8014) it is not possible. But it *is* possible - and i will show you how. - -## 1.) Enable SSH access in ipfire and connect to ipfire as root. - -## 2.) Add the following lines to the file /var/ipfire/ethernet/aliases: - -```bash - 212.218.10.65,on,RED2 - 212.218.10.66,on,RED3 - 212.218.10.67,on,RED4 - 212.218.10.68,on,RED5 - 212.218.10.69,on,RED6 - 212.218.10.70,on,RED7 -``` - -## 3.) Create a new file (this will configure your ip addresses) - -/etc/rc.d/init.d/networking/red.up/02-aliases: - -```bash - ip addr add 212.218.10.65/29 dev ppp0 - ip addr add 212.218.10.66/29 dev ppp0 - ip addr add 212.218.10.67/29 dev ppp0 - ip addr add 212.218.10.68/29 dev ppp0 - ip addr add 212.218.10.69/29 dev ppp0 - ip addr add 212.218.10.70/29 dev ppp0 - ip addr show ppp0 -``` - -## 4.) Make it executable! - -```bash - chmod 0755 /etc/rc.d/init.d/networking/red.up/02-aliases -``` - -## 5.) Restart your Internet connection - -READY. - -- The new ip addresses will be automatically configured every time the firewall reconnects or reboots. -- You will see the addresses in the ipfire menu -> network -> aliases -- You can use the new addresses in the firewall config - they will appear as RED2 - RED7 -- The warning "Aliases will not be active unless your RED interface is STATIC" can be safely ignored from now on - -Have fun ;-) diff --git a/ipfire/ipfire_ipalias_green.md b/ipfire/ipfire_ipalias_green.md deleted file mode 100644 index 6ae7cf5..0000000 --- a/ipfire/ipfire_ipalias_green.md +++ /dev/null @@ -1,24 +0,0 @@ -# Howto add a IP alias on the "green" interface in IPfire - -Let's say you have an internal /24 network and you want to add a secondary (local) IP address (this could be useful in case you remove an old machine from the network and your new firewall is on a different address - but your new firewall should offer on of it's services on the old address). - -In the ipfire GUI this is not possible. But you can use the file "rc.local" (which is executed while the firewall boots). - -## 1.) Add the following lines to the file /etc/sysconfig/rc.local: - -```bash - ip addr add 192.168.89.1/24 dev green0 - ip addr show green0 -``` - -## 2.) Make it executable: - -```bash - chmod 0755 /etc/sysconfig/rc.local -``` - -## 3.) Reboot your firewall or execute the script manually - -READY. - -The new ip address will be automatically configured every time the firewall reboots.