How do I assign a variable to hold multiple interfaces in Slackware firewall script?
I am using the firewall script generator provided by Eric. I have multiple virtual interfaces assigned to virtual machines. The script generates the following variable for a single internal interface:
How do I add other interfaces to this variable so that I don't have to add multiple rules each time I add another interface?
I tried space-separated values but it didn't work:
LOCAL_IFACE="10.40.51.1 10.40.52.1 10.40.53.1"
Hello gezley, assign at LOCAL_IFACE var your interface (For example: eth0) don't assign ip address.
I think so work :)
The trouble is I have other variables which need to be filled in as well:
LOCAL_IFACE # the interface name, eg., eth0
LOCAL_IP # the IP address, eg., 10.40.40.1/32
LOCAL_NET # the network, eg., 10.40.40.0/24
LOCAL_BCAST # the broadcast address, eg., 10.40.40.255
All of these are used in the script generated by Alien Bob's firewall script generator.
|All times are GMT -5. The time now is 02:02 AM.|