Main

type

5 (blog/news article)

status

21 (imported old-v2, waiting for another import)

review version

0

cleanup version

0

pending deletion

0 (-)

created at

2025-12-25 04:31:41

updated at

2025-12-25 04:31:41

Address

url

https://codingpackets.com/blog/proxmox-hook-script-port-mirror/

url length

63

url crc

35285

url crc32

2695727573

location type

1 (url matches target location, page_location is empty)

canonical status

2 (missing canonical tag in html)

canonical page id

-

Source

domain id

81049892

domain tld

2211

domain parts

2

originating warc id

-

originating url

https://data.commoncrawl.org/crawl-data/CC-MAIN-2025-33/segments/1754151279774.91/warc/CC-MAIN-20250804052519-20250804082519-00944.warc.gz

source type

11 (CommonCrawl)

Server response

server ip

3.162.125.14

Publication date

2025-08-04 07:15:56

Fetch attempts

0

Original html size

27783

Normalized and saved size

27374

Content

title

codingpackets.com

excerpt

content

Intro In a previous post I showed you how to configure a port-mirror in Proxmox. In that post, I used a bit of a dirty hack (bash scripts and crontab) to ensure the port-mirror is activated if the host or the VM reboots. Luckily for me, I have some really smart colleagues who mentioned that in libvirt, there is a hook mechanism that can be used to trigger scripts based on VM state. A quick duck hunt revealed that Proxmox has implemented this feature as well 🥳 In this post I will show you how to use Hook Scripts with Proxmox to enable/disable a port-mirror depending on the VMs execution phase . As an added bonus, I will also show you how to duplicate a port-mirror source, to multiple destinations within Proxmox. The following software was used in this post. Proxmox - 7.0-11 Lab Network The following diagram show the lab setup outlined in this post. The goal, is to have traffic port-mirrored from the Ju...

author

updated

1767070023

Text analysis

block type

0

extracted fields

104

extracted bits

title
full content
content was extracted heuristically

detected location

0

detected language

1 (English)

category id

SEC and Crypto [en] (228)

index version

2025123101

paywall score

0

spam phrases

0

Text statistics

text nonlatin

0

text cyrillic

0

text characters

6001

text words

1182

text unique words

385

text lines

1

text sentences

50

text paragraphs

1

text words per sentence

23

text matched phrases

1

text matched dictionaries

2