I am not using NetManager; I am manually just configuring rc.inet1
What I meant by on the site was;
http://www.slackware.com/~alien/efg/..Irrelevant at this point as I can not even simply get 3 lines to load automatically
So, after 'chmod +x /etc/rc.d/rc.firewall and inputting simply;
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -t nat -I PREROUTING -p tcp -d 192.168.4.177 --dport 72 -j DNAT --to-destination 192.168.122.123:72
iptables -I FORWARD -m state -d 192.168.122.123 --state NEW,RELATED,ESTABLISHED -j ACCEPT
Then when doing iptables -L;
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED
ACCEPT all -- 192.168.122.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
ACCEPT all -- anywhere 192.168.122.123 state NEW,RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:bootpc
Still, nothing. But when I magically type in;
iptables -I FORWARD -m state -d 192.168.122.123 --state NEW,RELATED,ESTABLISHED -j ACCEPT (just this line)
It works. So during bootup or whatever it does, this line [above] is either not being implemented or is being overwritten /removed after the fact.
So, as said above, the 3 lines alone in rc.firewall out the iptables -L I mentioned... But by manually inputting the 3rd line (a second time) via shell and having it work, iptables now produces this;
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere 192.168.122.123 state NEW,RELATED,ESTABLISHED
ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED
ACCEPT all -- 192.168.122.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
ACCEPT all -- anywhere 192.168.122.123 state NEW,RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:bootpc