⚠️ Warning: Restrict web access to yourcgi-binandiptables2weblocations in order to not reveal sensitive informations about your iptables rules!!!
- Download iptables2xml
- Put
iptables2xmlin your web server'scgi-bindirectory and make it executable:
chmod a+x /usr/lib/cgi-bin/iptables2xml- Give your web server password-less access to
/sbin/iptables-save, e.g. Ubuntu/Apache2:
visudo
# add a line like
www-data ALL= NOPASSWD: /sbin/iptables-save -c- Download zip file from latest release
- Unzip and move to web space, e.g. Ubuntu/Apache2:
unzip iptables2web-0.1.0.zip
mv dist /var/www/html/iptables2web- Edit config:
cd /var/www/html/iptables2web
vi iptables2web.json
dataUrl: path to iptables XML provider (see above) (default:/cgi-bin/iptables2xml)enableLogin: enable/disable login/logout links (default:true)loginUrl: Login URL (default:/mellon/login?ReturnTo=RETURN_TO_URL)logoutUrl: Logout URL (default:/mellon/logout?ReturnTo=RETURN_TO_URL)loginUrlandlogoutUrlsupportRETURN_TO_URLplaceholder
Try it!
npm install
npm run serve
npm run build
npm run test
npm run lint