Occasionally, I’ve found interfaces on the Sophos XG firewall that won’t or can’t be removed. (Sometimes the name shows blank, with nothing in it)

DISCLAIMER – THE STEPS BELOW WILL LIKELY VOID YOUR WARRANTY. USE AT YOUR OWN DISCRETION.

#1 – SSH into the appliance with the admin user
#2 – Select Option 5 “Device Management”
#3 – Select Option 3 “Advanced Shell”
#4 – Look at the configured interfaces in the Database, identify the one you want to remove. (In this example, we’ll select PortG.1046)


psql -U nobody -d corporate -c "select * from tblinterface;"

#5 – Delete the affected/faulty Interface. In this example, we remove PortG.1046

psql -U nobody -d corporate -c "delete from tblinterface where interface='PortG.1046'; "

 

#6 – Navigate back to the Web UI, your interface should be successfully removed.

Print Friendly, PDF & Email