Follow these guidelines to configure a LANforge server so that it is less abusable if accessible via the Internet. Ideally the only method of access is via SSH. Remember that LANforge systems are designed for isolated environments and convenient usability. |
|
Interfaces: eth0
Resource interface assignment:
Resource 1:
Specified Resource Addresses:
127.0.0.1:4004
Key Acceptable Values Value
**************************************************
log_level [0-65535] 7
log_dir [directory path] /home/lanforge
add_resource_addr [host:port] SEE LIST ABOVE
rem_resource_addr [host:port] SEE LIST ABOVE
realm [1-255] 255
resource [1-511] 1
mgt_dev [ethernet device] eth0
mode [resource, manager, both] both
log_file_len [0-2G] 0
bind_mgt [0-1] 0
shelf [1-8] 1
dev_ignore [eth0 eth1 ... ethN]
first_cli_port [1025-4199] 4001
connect_mgr [host:port]
gps_dev [device file] NONE
max_tx [1-500] 5
max_send_mmsg_mem [1000-500000] 32000
max_send_mmsg_pkts [1-1000] 500
keepalive [1000-500000] 30000
wl_probe_timer [50-2000] 50
Other Commands: help, show_all
**************************************************
If these values are correct, enter "config", otherwise change
the values by entering the key followed by the new value, for example:
mode manager
Your command:
Key Acceptable Values Value
**************************************************
log_level [0-65535] 7
log_dir [directory path] /home/lanforge
add_resource_addr [host:port] SEE LIST ABOVE
rem_resource_addr [host:port] SEE LIST ABOVE
realm [1-255] 255
resource [1-511] 1
mgt_dev [ethernet device] lo
mode [resource, manager, both] both
log_file_len [0-2G] 0
bind_mgt [0-1] 1
shelf [1-8] 1
dev_ignore [eth0 eth1 ... ethN] eth0
first_cli_port [1025-4199] 4001
connect_mgr [host:port]
gps_dev [device file] NONE
max_tx [1-500] 5
max_send_mmsg_mem [1000-500000] 32000
max_send_mmsg_pkts [1-1000] 500
keepalive [1000-500000] 30000
wl_probe_timer [50-2000] 50
Other Commands: help, show_all
**************************************************
Host lanforge-a1ssh -vnN lanforge-a1
Hostname gateway-host
User lanforge
IdentityFile ~/.ssh/id_ed25519 # needs to match the ssh key you shared with ssh-copy-id
IdentitiesOnly yes # useful if you have >6 ssh keys
Compression yes
LocalForward 8000 127.0.0.1:80 # for browsing reports on LF system
LocalForward 4001 127.0.0.1:4001 # for CLI telnet scripts
LocalForward 4002 127.0.0.1:4002 # for binary GUI protocol
::1 localhost6.localdomain6 localhost6
192.168.1.101 lanforge.localnet lanforge.localdomain
# Loopback entries; do not change.
# For historical reasons, localhost precedes localhost.localdomain:
# See hosts(5) for proper format and other examples:
# 192.168.1.10 foo.mydomain.org foo
# 192.168.1.13 bar.mydomain.org bar
###-LF-HOSTNAME-NEXT-###
127.0.0.1 localhost localhost.localdomain vm-a490 vm-a490-local