I had a script that I made to do masquerading in RH, now that I've switched to astaro I can't seem to get the masq. working properly. So I want to call back into sevice my old script, the problem is making it executable and running it on boot.
this is the script:
-----cut-----
#!/bin/sh
#
# Partial 2.4.x config to enable simple IP forwarding and Masquerading
# v0.61
#
# NOTE: The following is an example to allow only IP Masquerading for the
# 192.168.0.2 and 192.168.0.8 machines with a 255.255.255.0 or a
# "/24" subnet mask connecting to the Internet on interface eth0.
#
# ** Please change the network number, subnet mask, and the Internet
# ** connection interface name to match your internal LAN setup
#
echo " - Setting the default FORWARD policy to DROP"
$/usr/local/sbin/iptables -P FORWARD DROP
echo " - Enabling SNAT (IPMASQ) functionality on $EXTIF"
$/usr/local/sbin/iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.0.23/32 -j MASQUERADE
$/usr/local/sbin/iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.0.3/32 -j MASQUERADE
$/usr/local/sbin/iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.0.4/32 -j MASQUERADE
echo " - Setting the FORWARD policy to 'DROP' all incoming / unrelated traffic"
$/usr/local/sbin/iptables -A INPUT -i ppp0 -m state --state NEW,INVALID -j DROP
$/usr/local/sbin/iptables -A FORWARD -i ppp0 -m state --state NEW,INVALID -j DROP
-----cut-----
now, I've alrady done:chmod 755 rc.firewall
the problem is that when I try to run it I get this error:
bash: ./rc.firewall: No such file or directory
And in RH I just plopped this script into rc.local.. but astaro doesn't have an rc.local file, where should I put the call for this file?
help. [:S]
This thread was automatically locked due to age.