can not access it from outside

daleji

New member
Joined
Jul 5, 2020
Messages
2
hello,

Cannot access from outside.

first, 10.10.10.10 is LAN ip and 1.1.1.1 is WAN(Static NAT) IP.

When you run the [ ip addr ] command on my server:
1: lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:00:00:0f brd ff:ff:ff:ff:ff:ff
inet 10.10.10.10/24 brd 10.0.0.255 scope global dynamic noprefixroute eth0
valid_lft 35643sec preferred_lft 35643sec
inet 1.1.1.1/24 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::215:5dff:fe00:f/64 scope link
valid_lft forever preferred_lft forever

config files directadmin.conf setting is
lan_ip=10.10.10.10

[ ifdown eth0 & ifup eth0 ] The command disappears the 1.1.1.1 IP.
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:00:00:0f brd ff:ff:ff:ff:ff:ff
inet 10.10.10.10/24 brd 10.0.0.255 scope global dynamic noprefixroute eth0
valid_lft 35995sec preferred_lft 35995sec
inet6 fe80::215:5dff:fe00:f/64 scope link
valid_lft forever preferred_lft forever

1.1.1.1 When there is no IP, you can access it from outside. (Web, SSH, ...)

but, it will be recovered upon reboot. and cannot access.

how can i fix it?
 
Honestly, I still don't know what the problem was.
But I'll write down the solution after solving it.

Please refer to this url if you have the same problem as me.

This method adds NAT IP and works normally.

In addition [ ip addr ] command results.
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:00:00:0f brd ff:ff:ff:ff:ff:ff
inet 1.1.1.1/32 scope global noprefixroute eth0:0
valid_lft forever preferred_lft forever
inet 10.10.10.10/24 brd 10.0.0.255 scope global dynamic noprefixroute eth0
valid_lft 35728sec preferred_lft 35728sec
inet6 fe80::215:5dff:fe00:f/64 scope link
valid_lft forever preferred_lft forever
 
Back
Top