Skip to content

hook for libvirt to setup iptable rules for NAT port forwarding

License

Notifications You must be signed in to change notification settings

tobima/libvirt-hook-NAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libvirt-hook-NAT

Bash script implementating libvirt hooks for settiing up iptable port-forwading rules for NATed networking. Port-forwarding rules are stored in a JSON file.

Prerequisites

jq for parsing JSON files.

Installtion

To install the hook script and it's configuration files, simply use the Makefile_:

$ sudo make install

Afterwards customize /etc/libvirt/hooks/hooks.json to your needs and restart libvirt service. This Makefile target can be invoked multiple times, already installed configuration files won't be touched. The files can be removed again with:

$ sudo make uninstall

License

This project is licensed under the GPL v3.0 - see the LICENSE file for details

Acknowledgments

  • The basic function of hooks for libvirt is documented on the libvirt webpage
  • The idea for this script is based on an entry in the libvirt-wiki

About

hook for libvirt to setup iptable rules for NAT port forwarding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published