Portál AbcLinuxu, 10. května 2025 08:08
exec("sbin/iptables -I klient -t filter -s ".$IP[$i]." -j ACCEPT"); exec("sbin/iptables -I klient -t nat -s ".$IP[$i]." -j ACCEPT");Ovšem to mi ne a ne editovat pravidla. Pokud spustím celý script ručně, vykoná se bez problému. Je nějaké rychlé řešení jak script spustit bez problémů?
Řešení dotazu:
exec("/sbin/iptables -I klient -t filter -s $IP[$i] -j ACCEPT"); exec("/sbin/iptables -I klient -t nat -s $IP[$i] -j ACCEPT");
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.