Sophos SecurityTech

Sophos XG Firewall – Interfaces that won’t remove!

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.

Here are some steps to quickly remove the ‘faulty’ interface.

#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.

 

Leave a Reply

Your e-mail address will not be published. Required fields are marked *