Apache2 listen IPv6 only

Moderator: mike

Post Reply
16again
Posts: 1
Joined: Sat Apr 24, 2021 7:39 am

Apache2 listen IPv6 only

Post by 16again » Sat Apr 24, 2021 7:57 am

I noticed eve-ng webserver only listens on IPv6. (previously, I used to have to reboot sometimes to get things working. Never had a clue what was wrong. Now this "fix" seems exhausted)
Using IPv6, GUI works fine, but obviously trying to connect to running devices is broken. Which is understandable.

I already tried:
editing \etc\network\interfaces, to get rid of bridge on mgmt interface eth0

Old bridge config:

Code: Select all

# The primary network interface
iface eth0 inet manual
auto pnet0
iface pnet0 inet static
    address 10.a.b.71
    netmask 255.255.255.192
    gateway 10.a.b.126
    dns-domain mydomain.local
    dns-nameservers 10.a.b.249 10.a.b.248
    bridge_ports eth0
    bridge_stp off
Got rid of bridge:

Code: Select all

# The primary network interface , mgmt
auto eth0
iface eth0 inet static
    address 10.a.b.71
    netmask 255.255.255.192
    gateway 10.a.b.126
    dns-domain mydomain.local
    dns-nameservers 10.a.b.249 10.a.b.248
Also, I tried forcing apache2 to use IPv4 by changing lines in files
/etc/apache2/sites-available/000-default.conf
/etc/apache2/sites-available/unetlab.conf
<VirtualHost *:80>
into
<VirtualHost 0.0.0.0:80>
or even
<VirtualHost 10.a.b.71:80>


I'm left clueless: IP4 itself works fine. SSH access is OK , can ping outside world

Post Reply