Created
December 3, 2025 20:15
-
-
Save samvv/5df0694a858cc3bc2aec932ec60a2bf7 to your computer and use it in GitHub Desktop.
Block access to private networks on a machine using libvirt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <filter name='no-private-networks'> | |
| <rule action='drop' direction='out'> | |
| <tcp dstipaddr='10.0.0.0' dstipmask='8' /> | |
| </rule> | |
| <rule action='drop' direction='out'> | |
| <tcp dstipaddr='172.16.0.0' dstipmask='12' /> | |
| </rule> | |
| <rule action='drop' direction='out'> | |
| <tcp dstipaddr='192.168.0.0' dstipmask='16' /> | |
| </rule> | |
| </filter> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment