Jail problem with i2pd

vicar82

Cadet
Joined
Nov 18, 2020
Messages
2
Hello!
What i've got:
1) GUI configured jail( DHCP, VNET, BPF)
2) pkg installed i2pd
3) created config i2pd.conf
4) enabled Web Console in i2pd.conf:
Code:
[http]
## Web Console settings
## Uncomment and set to 'false' to disable Web Console
enabled = true
## Address and port service will listen on
address = 127.0.0.1
port = 7070
## Path to web console, default "/"
# webroot = /
## Uncomment following lines to enable Web Console authentication
# auth = true
# user = i2pd
# pass = changeme


Everything is working but... I can't enter Web Console.

1) I2pd is working. I can see multiple connections in iftop.
2) webconsole is working on port 7070:
Code:
root@i2pd:/ # netstat -a -n | grep LISTEN
tcp4       0      0 127.0.0.1.7656         *.*                    LISTEN
tcp4       0      0 127.0.0.1.4447         *.*                    LISTEN
tcp4       0      0 127.0.0.1.4444         *.*                    LISTEN
tcp4       0      0 127.0.0.1.7070         *.*                    LISTEN
tcp4       0      0 *.22845                *.*                    LISTEN

3) my jail ifconfig:
Code:
root@i2pd:/ # ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 6a:b5:99:21:6a:e1
        hwaddr 02:66:f2:00:10:0b
        inet 192.168.1.15 netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=1<PERFORMNUD>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair

But when i enter http://192.168.1.15:7070 from my notebook with ip 192.186.1.20 - i've got..... NOTHING.
I've got 5 diffrent jails more. All of them - DHCP, VNET, BPF. And all of them working perfect. I can enter their ip:port and everything is OK.

Any ideas where the problem?
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
If you are listening on 127.0.0.1 then you can only connect locally.
Change address = 0.0.0.0
 

vicar82

Cadet
Joined
Nov 18, 2020
Messages
2
If you are listening on 127.0.0.1 then you can only connect locally.
Change address = 0.0.0.0
When I change listen address to 0.0.0.0 - I've got message "Host unknown" or something like that.
But when I change address to 192.168.1.15 (same as ifconfig) i saw the Web Console panel

But You won't even believe where the problem was....
I forgot to specify config file path for i2pd.:grin::grin::grin:

Now everything work like a charm
 
Top