Table of Contents

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 and this thread 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:

snippet.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:

snippet.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!

snippet.bash
  chmod 0755 /etc/rc.d/init.d/networking/red.up/02-aliases

5.) Restart your Internet connection

READY.

Have fun ;-)