Topology changed

Hi all
I initially installed IPFire with RED-GREEN-BLUE topology by assigning IP addresses to each of the interfaces

Later I decided to remove the BLUE network (not used), so I then went via cli (ssh) to run the setup command to reconfigure the topology in RED-GREEN

Everything works (or seems) regularly, but in the file /var/ipfire/ethernet/settings I still find the following parameters set for the BLU network:
_NETADDRESS=192.168.80.0
_ADDRESS=192.168.80.1
_NETMASK=255.255.255.0

my questions are:

  1. can I remove these values with a clear heart or are there any recommendations / advice on how to remove these “old” parameters?
  2. i have to clear the values or to delete the entire parameter?

Thanks in advance for you kind reply, regards

  • First I made a copy of settings to settings.old
  • Then I deleted all lines with BLUE_
  • ipfire is ok.
1 Like

Yes, it is safe to delete those values if you disabled the BLUE interface before.

1 Like

The BLUE_* settings shouldn’t matter.
These are used only if the CONFIG_TYPE includes the blue interface ( values 3 or 4 ).

1 Like

hi @bbitsch and thanks all for their feedback

CONFIG_TYPE is set to 1
but i still have the BLUE_* parameters with values (wrong)
i tried, as suggested by @anon42188109 to 1) delete all lines with BLUE_* 2) remove only the values on lines with BLUE_* parameters but in both cases i get the same following error:

[root@fw ~]# sudo /etc/init.d/network restart
Umounting network file systems… [ OK ]
Removing IPv4 addresses from the green0 interface… [ OK ]
Stopping default gateway 10.100.100.1… [ OK ]
Removing IPv4 addresses from the red0 interface… [ OK ]
Error: ipv4: FIB table does not exist.
Flush terminated
RTNETLINK answers: No such file or directory
Adding static routes…
Error: Nexthop has invalid gateway.
Error: Nexthop has invalid gateway.
Error: Nexthop has invalid gatewayError: Nexthop has invalid gateway…

Error: Nexthop has invalid gateway.
Error: Nexthop has invalid gateway.
Error: Nexthop has invalid gatewayError: Nexthop has invalid gateway…

Error: Nexthop has invalid gatewayError: Nexthop has invalid gateway…

Error: Nexthop has invalid gatewayError: Nexthop has invalid gateway…
[ FAIL ]
Error: Nexthop has invalid gateway.
Error: Nexthop has invalid gateway.
Disabling firewall access to RED
Use of uninitialized value $netmask_bin in 1’s complement (~) at /var/ipfire/network-functions.pl line 305.
Argument “” isn’t numeric in modulus (%) at /var/ipfire/network-functions.pl line 305.
Use of uninitialized value $network_bin in bitwise xor (^) at /var/ipfire/network-functions.pl line 305.
Use of uninitialized value $network_bin in numeric ge (>=) at /var/ipfire/network-functions.pl line 307. [ OK ]
Bringing down the red0 interface… [ OK ]
Bringing up the green0 interface…
Adding IPv4 address 172.28.100.2 to the green0 interface… [ OK ]
Bringing up the red0 interface…
Adding IPv4 address 10.100.100.2 to the red0 interface… [ OK ]
Setting up default gateway 10.100.100.1… [ OK ]
Wait for carrier on red0 … [ OK ]
Adding static routes… [ OK ]
Reloading firewall
iptables v1.8.7 (legacy): invalid mask ' specified Try iptables -h’ or ‘iptables --help’ for more information.
ERROR: iptables --wait -t mangle -A NAT_DESTINATION -p tcp --dport 88 -s / -d 10.100.100.2 -j MARK --set-xmark 33554432/251658240
iptables v1.8.7 (legacy): invalid mask `’ specified

please note that the last error, for iptables, refers to a camera

what does ifconfig look like ?

from your post, green is 172.28.100.*, red is 10.100.100.*

BTW: since you’re root, you dont need sudo

@anon42188109 confirm that green is 172.28.100.2 and red is 10.100.100.2 with gw 10.100.100.1