VMWare CLi

From Lolly's Wiki
Revision as of 08:19, 28 June 2017 by Lollypop (talk | contribs)
Jump to navigationJump to search

Kategorie: VMWare

Routen

esxcli network ip route ipv4 add --network=10.14.90.0/25 --gateway=10.128.1.9
esxcli network ip route ipv4 add --network=10.14.95.0/25 --gateway=10.128.1.9
esxcli network ip route ipv4 add --network=10.14.90.128/25 --gateway=10.128.1.10
esxcli network ip route ipv4 add --network=10.14.95.128/25 --gateway=10.128.1.10

Firewall

SSH

esxcli network firewall ruleset set --ruleset-id sshServer --allowed-all false
esxcli network firewall ruleset allowedip add --ruleset-id sshServer --ip-address 10.14.0.0/16
esxcli network firewall ruleset allowedip add --ruleset-id sshServer --ip-address 192.168.2.0/24
esxcli network firewall ruleset allowedip list --ruleset-id sshServer

Ruleset Allowed IP Addresses 
--------- ------------------------------
sshServer 10.14.0.0/16, 192.168.2.0/24

HTTP

esxcli network firewall ruleset set --ruleset-id CIMHttpServer --allowed-all false
esxcli network firewall ruleset allowedip add --ruleset-id CIMHttpServer --ip-address 10.14.0.0/16
esxcli network firewall ruleset allowedip add --ruleset-id CIMHttpServer --ip-address 192.168.2.0/24
esxcli network firewall ruleset allowedip list --ruleset-id CIMHttpServer

Ruleset Allowed IP Addresses 
------------- ----------------------------
CIMHttpServer 10.14.0.0/16, 192.168.2.0/24

HTTPS

esxcli network firewall ruleset set --ruleset-id CIMHttpsServer --allowed-all false
esxcli network firewall ruleset allowedip add --ruleset-id CIMHttpsServer --ip-address 10.14.0.0/16
esxcli network firewall ruleset allowedip add --ruleset-id CIMHttpsServer --ip-address 192.168.2.0/24
esxcli network firewall ruleset allowedip list --ruleset-id CIMHttpsServer

Ruleset Allowed IP Addresses 
-------------- ----------------------------
CIMHttpsServer 10.14.0.0/16, 192.168.2.0/24

CIMSLP

esxcli network firewall ruleset set --ruleset-id CIMSLP --allowed-all false
esxcli network firewall ruleset allowedip add --ruleset-id CIMSLP --ip-address 10.14.0.0/16
esxcli network firewall ruleset allowedip add --ruleset-id CIMSLP --ip-address 192.168.2.0/24
esxcli network firewall ruleset allowedip list --ruleset-id CIMSLP

Ruleset Allowed IP Addresses 
------- ----------------------------
CIMSLP 10.14.0.0/16, 192.168.2.0/24