User Tools

Site Tools


Sidebar

LUCY MANUAL Applies to LUCY versions above 2.2.

accessibility:i_changed_the_admin_port_for_the_user_interface_but_my_firewall_blocks_access_to_that_port

If you change the admin port in LUCY from 443 to a custom port (in this example port 8081), you might find yourself in a situation that a security device (e.g. Firewall) is blocking access to that port. In order to turn the settings back to port 443 please do the following via SSH (port 22) or directly on the system:

Login via terminal and execute these commands:
cd /etc/apache2
nano ports.conf

comment two lines:
#Listen 8081
#NameVirtualHost *:8081

Save and exit
Press Ctrl+O+Enter and Ctrl+X to save&exit.

Change virtual host configuration
nano sites-available/phishing-ssl
edit the first line like to:
<VirtualHost *:443>

Save & Exit
Press Ctrl+O+Enter and Ctrl+X to save&exit.

Remove entries
rm sites-enabled/phishing-ssl-extra
rm sites-available/phishing-ssl-extra

Change IP-Tables
iptables -F LUCY_ADMIN
iptables -D INPUT -j LUCY_ADMIN
iptables -X LUCY_ADMIN
iptables -N LUCY_ADMIN
iptables -I INPUT -j LUCY_ADMIN
iptables-save

Update database
sudo -upostgres psql phishing
UPDATE system SET admin_port=null;
\quit

Restart Apache
service apache2 restart

Try to login again
https://your-ip/admin

accessibility/i_changed_the_admin_port_for_the_user_interface_but_my_firewall_blocks_access_to_that_port.txt · Last modified: 2017/11/20 14:04 by lucy