]>
Commit | Line | Data |
---|---|---|
c7eda5e6 DM |
1 | ifdef::manvolnum[] |
2 | PVE({manvolnum}) | |
3 | ================ | |
38fd0958 | 4 | include::attributes.txt[] |
c7eda5e6 DM |
5 | |
6 | NAME | |
7 | ---- | |
8 | ||
f5eb0727 | 9 | pve-firewall - PVE Firewall Daemon |
c7eda5e6 DM |
10 | |
11 | ||
12 | SYNOPSYS | |
13 | -------- | |
14 | ||
5f34196d | 15 | include::pve-firewall.8-synopsis.adoc[] |
c7eda5e6 DM |
16 | |
17 | ||
18 | DESCRIPTION | |
19 | ----------- | |
20 | endif::manvolnum[] | |
21 | ||
22 | ifndef::manvolnum[] | |
23 | {pve} Firewall | |
24 | ============== | |
38fd0958 | 25 | include::attributes.txt[] |
c7eda5e6 DM |
26 | endif::manvolnum[] |
27 | ||
26ca7ff5 | 28 | {pve} Firewall provides an easy way to protect your IT |
89a8b6c6 | 29 | infrastructure. You can setup firewall rules for all hosts |
c7eda5e6 DM |
30 | inside a cluster, or define rules for virtual machines and |
31 | containers. Features like firewall macros, security groups, IP sets | |
5eba0743 | 32 | and aliases help to make that task easier. |
c7eda5e6 DM |
33 | |
34 | While all configuration is stored on the cluster file system, the | |
8c1189b6 | 35 | `iptables`-based firewall runs on each cluster node, and thus provides |
c7eda5e6 DM |
36 | full isolation between virtual machines. The distributed nature of |
37 | this system also provides much higher bandwidth than a central | |
38 | firewall solution. | |
39 | ||
bd73a43e DM |
40 | The firewall has full support for IPv4 and IPv6. IPv6 support is fully |
41 | transparent, and we filter traffic for both protocols by default. So | |
42 | there is no need to maintain a different set of rules for IPv6. | |
43 | ||
c7eda5e6 DM |
44 | |
45 | Zones | |
46 | ----- | |
47 | ||
48 | The Proxmox VE firewall groups the network into the following logical zones: | |
49 | ||
50 | Host:: | |
51 | ||
52 | Traffic from/to a cluster node | |
53 | ||
54 | VM:: | |
55 | ||
56 | Traffic from/to a specific VM | |
57 | ||
58 | For each zone, you can define firewall rules for incoming and/or | |
59 | outgoing traffic. | |
60 | ||
61 | ||
79672214 DM |
62 | Configuration Files |
63 | ------------------- | |
c7eda5e6 DM |
64 | |
65 | All firewall related configuration is stored on the proxmox cluster | |
66 | file system. So those files are automatically distributed to all | |
8c1189b6 FG |
67 | cluster nodes, and the `pve-firewall` service updates the underlying |
68 | `iptables` rules automatically on changes. | |
c7eda5e6 | 69 | |
e300cf7d FG |
70 | You can configure anything using the GUI (i.e. *Datacenter* -> *Firewall*, |
71 | or on a *Node* -> *Firewall*), or you can edit the configuration files | |
89a8b6c6 DM |
72 | directly using your preferred editor. |
73 | ||
74 | Firewall configuration files contains sections of key-value | |
8c1189b6 | 75 | pairs. Lines beginning with a `#` and blank lines are considered |
79672214 | 76 | comments. Sections starts with a header line containing the section |
8c1189b6 | 77 | name enclosed in `[` and `]`. |
79672214 | 78 | |
89a8b6c6 | 79 | |
79672214 DM |
80 | Cluster Wide Setup |
81 | ~~~~~~~~~~~~~~~~~~ | |
82 | ||
83 | The cluster wide firewall configuration is stored at: | |
c7eda5e6 DM |
84 | |
85 | /etc/pve/firewall/cluster.fw | |
86 | ||
79672214 | 87 | The configuration can contain the following sections: |
c7eda5e6 | 88 | |
8c1189b6 | 89 | `[OPTIONS]`:: |
79672214 DM |
90 | |
91 | This is used to set cluster wide firewall options. | |
92 | ||
c48819d1 DM |
93 | include::pve-firewall-cluster-opts.adoc[] |
94 | ||
8c1189b6 | 95 | `[RULES]`:: |
c7eda5e6 | 96 | |
79672214 DM |
97 | This sections contains cluster wide firewall rules for all nodes. |
98 | ||
8c1189b6 | 99 | `[IPSET <name>]`:: |
79672214 DM |
100 | |
101 | Cluster wide IP set definitions. | |
102 | ||
8c1189b6 | 103 | `[GROUP <name>]`:: |
79672214 DM |
104 | |
105 | Cluster wide security group definitions. | |
106 | ||
8c1189b6 | 107 | `[ALIASES]`:: |
79672214 DM |
108 | |
109 | Cluster wide Alias definitions. | |
110 | ||
89a8b6c6 DM |
111 | |
112 | Enabling the Firewall | |
113 | ^^^^^^^^^^^^^^^^^^^^^ | |
114 | ||
115 | The firewall is completely disabled by default, so you need to | |
116 | set the enable option here: | |
117 | ||
118 | ---- | |
119 | [OPTIONS] | |
120 | # enable firewall (cluster wide setting, default is disabled) | |
121 | enable: 1 | |
122 | ---- | |
123 | ||
124 | IMPORTANT: If you enable the firewall, traffic to all hosts is blocked by | |
125 | default. Only exceptions is WebGUI(8006) and ssh(22) from your local | |
126 | network. | |
127 | ||
128 | If you want to administrate your {pve} hosts from remote, you | |
129 | need to create rules to allow traffic from those remote IPs to the web | |
130 | GUI (port 8006). You may also want to allow ssh (port 22), and maybe | |
131 | SPICE (port 3128). | |
132 | ||
133 | TIP: Please open a SSH connection to one of your {PVE} hosts before | |
134 | enabling the firewall. That way you still have access to the host if | |
135 | something goes wrong . | |
136 | ||
137 | To simplify that task, you can instead create an IPSet called | |
8c1189b6 | 138 | ``management'', and add all remote IPs there. This creates all required |
89a8b6c6 DM |
139 | firewall rules to access the GUI from remote. |
140 | ||
141 | ||
5eba0743 | 142 | Host Specific Configuration |
79672214 DM |
143 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
144 | ||
145 | Host related configuration is read from: | |
146 | ||
147 | /etc/pve/nodes/<nodename>/host.fw | |
148 | ||
8c1189b6 | 149 | This is useful if you want to overwrite rules from `cluster.fw` |
79672214 | 150 | config. You can also increase log verbosity, and set netfilter related |
888c4116 DM |
151 | options. The configuration can contain the following sections: |
152 | ||
8c1189b6 | 153 | `[OPTIONS]`:: |
888c4116 DM |
154 | |
155 | This is used to set host related firewall options. | |
156 | ||
157 | include::pve-firewall-host-opts.adoc[] | |
158 | ||
8c1189b6 | 159 | `[RULES]`:: |
888c4116 DM |
160 | |
161 | This sections contains host specific firewall rules. | |
79672214 DM |
162 | |
163 | ||
5eba0743 | 164 | VM/Container Configuration |
79672214 | 165 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
c7eda5e6 DM |
166 | |
167 | VM firewall configuration is read from: | |
168 | ||
169 | /etc/pve/firewall/<VMID>.fw | |
170 | ||
171 | and contains the following data: | |
172 | ||
8c1189b6 | 173 | `[OPTIONS]`:: |
78ef35dc DM |
174 | |
175 | This is used to set VM/Container related firewall options. | |
176 | ||
177 | include::pve-firewall-vm-opts.adoc[] | |
178 | ||
8c1189b6 | 179 | `[RULES]`:: |
78ef35dc DM |
180 | |
181 | This sections contains VM/Container firewall rules. | |
182 | ||
8c1189b6 | 183 | `[IPSET <name>]`:: |
78ef35dc DM |
184 | |
185 | IP set definitions. | |
186 | ||
8c1189b6 | 187 | `[ALIASES]`:: |
78ef35dc DM |
188 | |
189 | IP Alias definitions. | |
c7eda5e6 | 190 | |
c7eda5e6 | 191 | |
58b16f71 | 192 | Enabling the Firewall for VMs and Containers |
79672214 | 193 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
c7eda5e6 | 194 | |
89a8b6c6 DM |
195 | Each virtual network device has its own firewall enable flag. So you |
196 | can selectively enable the firewall for each interface. This is | |
8c1189b6 | 197 | required in addition to the general firewall `enable` option. |
89a8b6c6 DM |
198 | |
199 | The firewall requires a special network device setup, so you need to | |
200 | restart the VM/container after enabling the firewall on a network | |
201 | interface. | |
c7eda5e6 | 202 | |
79672214 | 203 | |
c7eda5e6 | 204 | Firewall Rules |
79672214 | 205 | -------------- |
c7eda5e6 | 206 | |
696fb448 DM |
207 | Firewall rules consists of a direction (`IN` or `OUT`) and an |
208 | action (`ACCEPT`, `DENY`, `REJECT`). You can also specify a macro | |
8c1189b6 FG |
209 | name. Macros contain predefined sets of rules and options. Rules can be |
210 | disabled by prefixing them with `|`. | |
c7eda5e6 | 211 | |
696fb448 | 212 | .Firewall rules syntax |
c7eda5e6 DM |
213 | ---- |
214 | [RULES] | |
215 | ||
696fb448 DM |
216 | DIRECTION ACTION [OPTIONS] |
217 | |DIRECTION ACTION [OPTIONS] # disabled rule | |
c7eda5e6 | 218 | |
696fb448 DM |
219 | DIRECTION MACRO(ACTION) [OPTIONS] # use predefined macro |
220 | ---- | |
221 | ||
222 | The following options can be used to refine rule matches. | |
223 | ||
224 | include::pve-firewall-rules-opts.adoc[] | |
225 | ||
226 | Here are some examples: | |
c7eda5e6 | 227 | |
696fb448 DM |
228 | ---- |
229 | [RULES] | |
c7eda5e6 DM |
230 | IN SSH(ACCEPT) -i net0 |
231 | IN SSH(ACCEPT) -i net0 # a comment | |
696fb448 | 232 | IN SSH(ACCEPT) -i net0 -source 192.168.2.192 # only allow SSH from 192.168.2.192 |
c7eda5e6 DM |
233 | IN SSH(ACCEPT) -i net0 -source 10.0.0.1-10.0.0.10 # accept SSH for ip range |
234 | IN SSH(ACCEPT) -i net0 -source 10.0.0.1,10.0.0.2,10.0.0.3 #accept ssh for ip list | |
696fb448 DM |
235 | IN SSH(ACCEPT) -i net0 -source +mynetgroup # accept ssh for ipset mynetgroup |
236 | IN SSH(ACCEPT) -i net0 -source myserveralias #accept ssh for alias myserveralias | |
c7eda5e6 DM |
237 | |
238 | |IN SSH(ACCEPT) -i net0 # disabled rule | |
696fb448 DM |
239 | |
240 | IN DROP # drop all incoming packages | |
241 | OUT ACCEPT # accept all outgoing packages | |
c7eda5e6 DM |
242 | ---- |
243 | ||
8c1189b6 | 244 | |
c7eda5e6 | 245 | Security Groups |
79672214 | 246 | --------------- |
c7eda5e6 | 247 | |
58b16f71 WB |
248 | A security group is a collection of rules, defined at cluster level, which |
249 | can be used in all VMs' rules. For example you can define a group named | |
8c1189b6 | 250 | ``webserver'' with rules to open the 'http' and 'https' ports. |
c7eda5e6 DM |
251 | |
252 | ---- | |
253 | # /etc/pve/firewall/cluster.fw | |
254 | ||
255 | [group webserver] | |
256 | IN ACCEPT -p tcp -dport 80 | |
257 | IN ACCEPT -p tcp -dport 443 | |
258 | ---- | |
259 | ||
58b16f71 | 260 | Then, you can add this group to a VM's firewall |
c7eda5e6 DM |
261 | |
262 | ---- | |
263 | # /etc/pve/firewall/<VMID>.fw | |
264 | ||
265 | [RULES] | |
266 | GROUP webserver | |
267 | ---- | |
268 | ||
269 | ||
270 | IP Aliases | |
79672214 | 271 | ---------- |
c7eda5e6 | 272 | |
58b16f71 | 273 | IP Aliases allow you to associate IP addresses of networks with a |
c7eda5e6 DM |
274 | name. You can then refer to those names: |
275 | ||
276 | * inside IP set definitions | |
277 | * in `source` and `dest` properties of firewall rules | |
278 | ||
5eba0743 FG |
279 | |
280 | Standard IP Alias `local_network` | |
79672214 | 281 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
c7eda5e6 DM |
282 | |
283 | This alias is automatically defined. Please use the following command | |
284 | to see assigned values: | |
285 | ||
286 | ---- | |
287 | # pve-firewall localnet | |
288 | local hostname: example | |
289 | local IP address: 192.168.2.100 | |
290 | network auto detect: 192.168.0.0/20 | |
291 | using detected local_network: 192.168.0.0/20 | |
292 | ---- | |
293 | ||
294 | The firewall automatically sets up rules to allow everything needed | |
58b16f71 | 295 | for cluster communication (corosync, API, SSH) using this alias. |
c7eda5e6 | 296 | |
8c1189b6 | 297 | The user can overwrite these values in the `cluster.fw` alias |
c7eda5e6 DM |
298 | section. If you use a single host on a public network, it is better to |
299 | explicitly assign the local IP address | |
300 | ||
301 | ---- | |
302 | # /etc/pve/firewall/cluster.fw | |
303 | [ALIASES] | |
304 | local_network 1.2.3.4 # use the single ip address | |
305 | ---- | |
306 | ||
5eba0743 | 307 | |
c7eda5e6 | 308 | IP Sets |
79672214 | 309 | ------- |
c7eda5e6 DM |
310 | |
311 | IP sets can be used to define groups of networks and hosts. You can | |
58b16f71 | 312 | refer to them with `+name` in the firewall rules' `source` and `dest` |
c7eda5e6 DM |
313 | properties. |
314 | ||
315 | The following example allows HTTP traffic from the `management` IP | |
316 | set. | |
317 | ||
318 | IN HTTP(ACCEPT) -source +management | |
319 | ||
5eba0743 | 320 | |
c7eda5e6 | 321 | Standard IP set `management` |
79672214 | 322 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
c7eda5e6 DM |
323 | |
324 | This IP set applies only to host firewalls (not VM firewalls). Those | |
5eba0743 | 325 | IPs are allowed to do normal management tasks (PVE GUI, VNC, SPICE, |
c7eda5e6 DM |
326 | SSH). |
327 | ||
328 | The local cluster network is automatically added to this IP set (alias | |
329 | `cluster_network`), to enable inter-host cluster | |
330 | communication. (multicast,ssh,...) | |
331 | ||
332 | ---- | |
333 | # /etc/pve/firewall/cluster.fw | |
334 | ||
335 | [IPSET management] | |
336 | 192.168.2.10 | |
337 | 192.168.2.10/24 | |
338 | ---- | |
339 | ||
8c1189b6 FG |
340 | |
341 | Standard IP set `blacklist` | |
79672214 | 342 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
c7eda5e6 | 343 | |
5eba0743 | 344 | Traffic from these IPs is dropped by every host's and VM's firewall. |
c7eda5e6 DM |
345 | |
346 | ---- | |
347 | # /etc/pve/firewall/cluster.fw | |
348 | ||
349 | [IPSET blacklist] | |
350 | 77.240.159.182 | |
351 | 213.87.123.0/24 | |
352 | ---- | |
353 | ||
8c1189b6 | 354 | |
6300d424 | 355 | [[ipfilter-section]] |
8c1189b6 | 356 | Standard IP set `ipfilter-net*` |
79672214 | 357 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
c7eda5e6 | 358 | |
a34d23e8 WB |
359 | These filters belong to a VM's network interface and are mainly used to prevent |
360 | IP spoofing. If such a set exists for an interface then any outgoing traffic | |
361 | with a source IP not matching its interface's corresponding ipfilter set will | |
362 | be dropped. | |
363 | ||
364 | For containers with configured IP addresses these sets, if they exist (or are | |
e300cf7d | 365 | activated via the general `IP Filter` option in the VM's firewall's *options* |
a34d23e8 WB |
366 | tab), implicitly contain the associated IP addresses. |
367 | ||
368 | For both virtual machines and containers they also implicitly contain the | |
369 | standard MAC-derived IPv6 link-local address in order to allow the neighbor | |
370 | discovery protocol to work. | |
c7eda5e6 DM |
371 | |
372 | ---- | |
373 | /etc/pve/firewall/<VMID>.fw | |
374 | ||
375 | [IPSET ipfilter-net0] # only allow specified IPs on net0 | |
376 | 192.168.2.10 | |
377 | ---- | |
378 | ||
79672214 | 379 | |
c7eda5e6 | 380 | Services and Commands |
79672214 | 381 | --------------------- |
c7eda5e6 DM |
382 | |
383 | The firewall runs two service daemons on each node: | |
384 | ||
385 | * pvefw-logger: NFLOG daemon (ulogd replacement). | |
386 | * pve-firewall: updates iptables rules | |
387 | ||
8c1189b6 | 388 | There is also a CLI command named `pve-firewall`, which can be used to |
c7eda5e6 DM |
389 | start and stop the firewall service: |
390 | ||
391 | # pve-firewall start | |
392 | # pve-firewall stop | |
393 | ||
394 | To get the status use: | |
395 | ||
396 | # pve-firewall status | |
397 | ||
398 | The above command reads and compiles all firewall rules, so you will | |
399 | see warnings if your firewall configuration contains any errors. | |
400 | ||
401 | If you want to see the generated iptables rules you can use: | |
402 | ||
403 | # iptables-save | |
404 | ||
79672214 | 405 | |
c7eda5e6 | 406 | Tips and Tricks |
79672214 | 407 | --------------- |
c7eda5e6 DM |
408 | |
409 | How to allow FTP | |
79672214 | 410 | ~~~~~~~~~~~~~~~~ |
c7eda5e6 DM |
411 | |
412 | FTP is an old style protocol which uses port 21 and several other dynamic ports. So you | |
8c1189b6 | 413 | need a rule to accept port 21. In addition, you need to load the `ip_conntrack_ftp` module. |
c7eda5e6 DM |
414 | So please run: |
415 | ||
416 | modprobe ip_conntrack_ftp | |
417 | ||
8c1189b6 | 418 | and add `ip_conntrack_ftp` to `/etc/modules` (so that it works after a reboot). |
c7eda5e6 | 419 | |
79672214 | 420 | |
c7eda5e6 | 421 | Suricata IPS integration |
79672214 | 422 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
c7eda5e6 DM |
423 | |
424 | If you want to use the http://suricata-ids.org/[Suricata IPS] | |
425 | (Intrusion Prevention System), it's possible. | |
426 | ||
427 | Packets will be forwarded to the IPS only after the firewall ACCEPTed | |
428 | them. | |
429 | ||
430 | Rejected/Dropped firewall packets don't go to the IPS. | |
431 | ||
432 | Install suricata on proxmox host: | |
433 | ||
434 | ---- | |
435 | # apt-get install suricata | |
436 | # modprobe nfnetlink_queue | |
437 | ---- | |
438 | ||
8c1189b6 | 439 | Don't forget to add `nfnetlink_queue` to `/etc/modules` for next reboot. |
c7eda5e6 DM |
440 | |
441 | Then, enable IPS for a specific VM with: | |
442 | ||
443 | ---- | |
444 | # /etc/pve/firewall/<VMID>.fw | |
445 | ||
446 | [OPTIONS] | |
447 | ips: 1 | |
448 | ips_queues: 0 | |
449 | ---- | |
450 | ||
451 | `ips_queues` will bind a specific cpu queue for this VM. | |
452 | ||
453 | Available queues are defined in | |
454 | ||
455 | ---- | |
456 | # /etc/default/suricata | |
457 | NFQUEUE=0 | |
458 | ---- | |
459 | ||
8c1189b6 FG |
460 | |
461 | Avoiding `link-local` Addresses on `tap` and `veth` Devices | |
462 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
326e9652 WB |
463 | |
464 | With IPv6 enabled by default every interface gets a MAC-derived link local | |
465 | address. However, most devices on a typical {pve} setup are connected to a | |
466 | bridge and so the bridge is the only interface which really needs one. | |
467 | ||
468 | To disable a link local address on an interface you can set the interface's | |
469 | `disable_ipv6` sysconf variable. Despite the name, this does not prevent IPv6 | |
470 | traffic from passing through the interface when routing or bridging, so the | |
471 | only noticeable effect will be the removal of the link local address. | |
472 | ||
473 | The easiest method of achieving this setting for all newly started VMs is to | |
474 | set it for the `default` interface configuration and enabling it explicitly on | |
475 | the interfaces which need it. This is also the case for other settings such as | |
476 | `forwarding`, `accept_ra` or `autoconf`. | |
477 | ||
083adc34 | 478 | |
326e9652 | 479 | Here's a possible setup: |
326e9652 | 480 | |
083adc34 FG |
481 | .File `/etc/sysconf.d/90-ipv6.conf` |
482 | ---- | |
326e9652 WB |
483 | net.ipv6.conf.default.forwarding = 0 |
484 | net.ipv6.conf.default.proxy_ndp = 0 | |
485 | net.ipv6.conf.default.autoconf = 0 | |
486 | net.ipv6.conf.default.disable_ipv6 = 1 | |
487 | net.ipv6.conf.default.accept_ra = 0 | |
488 | ||
489 | net.ipv6.conf.lo.disable_ipv6 = 0 | |
490 | ---- | |
491 | ||
083adc34 | 492 | .File `/etc/network/interfaces` |
326e9652 | 493 | ---- |
326e9652 | 494 | (...) |
f56aaa83 WB |
495 | # Dual stack: |
496 | iface vmbr0 inet static | |
497 | address 1.2.3.4 | |
498 | netmask 255.255.255.128 | |
499 | gateway 1.2.3.5 | |
326e9652 WB |
500 | iface vmbr0 inet6 static |
501 | address fc00::31 | |
502 | netmask 16 | |
503 | gateway fc00::1 | |
504 | accept_ra 0 | |
505 | pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/disable_ipv6 | |
f56aaa83 WB |
506 | |
507 | # With IPv6-only 'pre-up' is too early and 'up' is too late. | |
508 | # Work around this by creating the bridge manually | |
509 | iface vmbr1 inet manual | |
510 | pre-up ip link add $IFACE type bridge | |
511 | up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/disable_ipv6 | |
512 | iface vmbr1 inet6 static | |
513 | address fc00:b:3::1 | |
514 | netmask 96 | |
515 | bridge_ports none | |
516 | bridge_stp off | |
517 | bridge_fd 0 | |
518 | bridge_vlan_aware yes | |
519 | accept_ra 0 | |
326e9652 WB |
520 | (...) |
521 | ---- | |
14c06023 | 522 | |
79672214 DM |
523 | |
524 | Notes on IPv6 | |
525 | ------------- | |
526 | ||
527 | The firewall contains a few IPv6 specific options. One thing to note is that | |
528 | IPv6 does not use the ARP protocol anymore, and instead uses NDP (Neighbor | |
529 | Discovery Protocol) which works on IP level and thus needs IP addresses to | |
530 | succeed. For this purpose link-local addresses derived from the interface's MAC | |
8c1189b6 | 531 | address are used. By default the `NDP` option is enabled on both host and VM |
79672214 DM |
532 | level to allow neighbor discovery (NDP) packets to be sent and received. |
533 | ||
534 | Beside neighbor discovery NDP is also used for a couple of other things, like | |
535 | autoconfiguration and advertising routers. | |
536 | ||
537 | By default VMs are allowed to send out router solicitation messages (to query | |
5eba0743 | 538 | for a router), and to receive router advertisement packets. This allows them to |
79672214 | 539 | use stateless auto configuration. On the other hand VMs cannot advertise |
8c1189b6 | 540 | themselves as routers unless the ``Allow Router Advertisement'' (`radv: 1`) option |
79672214 DM |
541 | is set. |
542 | ||
8c1189b6 | 543 | As for the link local addresses required for NDP, there's also an ``IP Filter'' |
79672214 DM |
544 | (`ipfilter: 1`) option which can be enabled which has the same effect as adding |
545 | an `ipfilter-net*` ipset for each of the VM's network interfaces containing the | |
546 | corresponding link local addresses. (See the | |
8c1189b6 | 547 | <<ipfilter-section,Standard IP set `ipfilter-net*`>> section for details.) |
79672214 DM |
548 | |
549 | ||
26ca7ff5 FG |
550 | Ports used by {pve} |
551 | ------------------- | |
224128ce DM |
552 | |
553 | * Web interface: 8006 | |
554 | * VNC Web console: 5900-5999 | |
555 | * SPICE proxy: 3128 | |
556 | * sshd (used for cluster actions): 22 | |
557 | * rpcbind: 111 | |
5eba0743 | 558 | * corosync multicast (if you run a cluster): 5404, 5405 UDP |
224128ce | 559 | |
14c06023 DM |
560 | |
561 | ifdef::manvolnum[] | |
562 | ||
563 | Macro Definitions | |
564 | ----------------- | |
565 | ||
566 | include::pve-firewall-macros.adoc[] | |
567 | ||
568 | ||
569 | include::pve-copyright.adoc[] | |
570 | ||
571 | endif::manvolnum[] |