VMWare CLi: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
(Die Seite wurde neu angelegt: „=== Routen === <pre> 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 --…“) |
m (Text replacement - "[[Kategorie:" to "[[Category:") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category: VMWare]] | |||
=== Routen === | === Routen === | ||
Latest revision as of 16:51, 25 November 2021
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