If you want to add a custom firewall rule on the All-In-One OVA, you must run a few commands to have this applied in iptables. This guide will show and provide instructions on how to get this completed.
If you have any questions about this guide, or need any assistance in general please contact LiveAction support: firstname.lastname@example.org
You can either open the Terminal from the All-In-One OVA or open up an SSH client. SSH with the following credentials:
Verify your current firewall rules by running the following command: sudo iptables –nvL
Note: In the example below, the last line of the firewall rules output is for port 255
To add custom IPv4 iptables rule, you must edit the iptables file.
Type ls, this command list all files in the current directory.
Type vi iptables and press [Enter]
Once you are in the iptables file, hit [I] on your keyboard (to go into insert mode), and add the custom IPv4 firewall rule below: Note: In this example, we are adding port 9996 to iptables
*filter -A INPUT -i eth0 -p udp -m udp –dport 9996 -j ACCEPT COMMIT
Once you have completed adding the firewall rule, hit [Esc] on your keyboard, and save the changes by typing :wq!
Run a backup command at the prompt and type [y] to save the changes
Reboot the All-In-One OVA for the changes to be reflected upon rebooting. Issue the following command to reboot: sudo reboot
Verify the firewall rule has been added and saved successfully to iptables by typing: sudo iptables – nvL
Note: We added port 9996 from Step 4 of this guide
DOWNLOAD PDF FILE How to add a custom firewall rule for IPv4 iptables