Portál AbcLinuxu, 10. května 2025 08:57
Ja tedy mam v /etc/firewall.user:
root@magicbox:~# cat /etc/firewall.user #!/bin/sh # Copyright (C) 2006 OpenWrt.org iptables -F input_rule iptables -F output_rule iptables -F forwarding_rule iptables -t nat -F prerouting_rule iptables -t nat -F postrouting_rule # The following chains are for traffic directed at the IP of the # WAN interface iptables -F input_wan iptables -F forwarding_wan iptables -t nat -F prerouting_wan ### Port forwarding iptables -t nat -A prerouting_wan -p tcp --dport 60001 -j DNAT --to 192.168.1.2:60001 iptables -A forwarding_wan -p tcp --dport 60001 -d 192.168.1.2 -j ACCEPT
V Ktorrentu port nastaveny na 60001 a vsechno chodi jak ma.
Jinak se taky vyplati limitovat pocet spojeni /pouzivam 500/, protoze od nejakeho vyssiho poctu to ten router proste zahlti.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.