On fresh install ESXi 7.0 U2 you just need two commands:
esxcli system syslog config set --loghost='udp://192.168.1.28:514' esxcli network firewall ruleset set --ruleset-id=syslog --enabled=true
First line configures address of remote syslog server - of course you have to change 192.168.1.28 to yours server IP.
Second one opens required ports on firewall.
My router configuration was:
root@gargoyle:~# uci show dhcp.lan.dhcp_option dhcp.lan.dhcp_option='252,http://wpad/wpad.dat' '6,192.168.1.28,192.168.1.4'
I would like to change WPAD address (option 252) to wpad.lan so I've to remove (del_list) old entry and add (add_list) new one:
root@gargoyle:~# uci del_list dhcp.lan.dhcp_option='252,http://wpad/wpad.dat' root@gargoyle:~# uci add_list dhcp.lan.dhcp_option='252,http://wpad.lan/wpad.dat'
check, if everything is correct:
root@gargoyle:~# uci show dhcp.lan.dhcp_option dhcp.lan.dhcp_option='6,192.168.1.28,192.168.1.4' '252,http://wpad.lan/wpad.dat'
now, You can commit changes (write to /etc/config/dhcp file) and restart dnsmasq daemon:
root@gargoyle:~# uci commit dhcp root@gargoyle:~# /etc/init.d/dnsmasq restart
On client you can check again using nmap command:
[root@Optiplex745 ~]# nmap --script broadcast-dhcp-discover -e enp3s0 Starting Nmap 7.70 ( https://nmap.org ) at 2021-03-17 22:42 CET Pre-scan script results: | broadcast-dhcp-discover: | Response 1 of 1: | IP Offered: 192.168.1.249 | DHCP Message Type: DHCPOFFER | Server Identifier: 192.168.1.4 | IP Address Lease Time: 2m00s | Bootfile Name: undionly.kpxe\x00 | Renewal Time Value: 1m00s | Rebinding Time Value: 1m45s | Subnet Mask: 255.255.255.0 | Broadcast Address: 192.168.1.255 | Router: 192.168.1.4 | Domain Name: lan | WPAD: http://wpad.lan/wpad.dat |_ Domain Name Server: 192.168.1.28, 192.168.1.4 WARNING: No targets were specified, so 0 hosts scanned. Nmap done: 0 IP addresses (0 hosts up) scanned in 3.85 seconds
Add comment