dobra teraz mam tak
Cytuj:
#!/bin/sh
#
# User startup/shutdown and firewall script.
. /etc/system.cfg
. /etc/live.cfg
. /etc/chat.pwd
if [ "$1" = firewall ]; then
# Add your custom firewall rules here. Warning, incorrect rules could
# leave your system insecure. $INET always represents the internet
# interface. These rules come before standard system rules. Example:
# reject incomming tcp connections to port 22 from the internet and log
#ipfwadm -I -a reject -P tcp -W $INET -D 0.0.0.0/0 22 -y -o
ipautofw -A -r tcp 2300 2400 -h 192.168.0.2
ipportfw -A -t 217.97.10.85/27900 -R 192.168.0.2/27900
ipportfw -A -t 217.97.10.85/28900 -R 192.168.0.2/28900
ipportfw -A -t 217.97.10.85/29900 -R 192.168.0.2/29900
ipportfw -A -t 217.97.10.85/29901 -R 192.168.0.2/29901
ipportfw -A -u 217.97.10.85/13139 -R 192.168.0.2/13139
ipportfw -A -t 217.97.10.85/47624 -R 192.168.0.2/47624
ipautofw -A -r tcp 2300 2400 -h 192.168.0.2
ipautofw -A -r udp 2300 2400 -h 192.168.0.2
ipautofw -A -d tcp 2300 2400 -h 192.168.0.2
jeśli dobrze rozumiem to w pliku/ROUTER/ETC/FORWARD.CFG
mam wpisać tak
Cytuj:
#_47x._[Port_forwarding_AKA_export_services]
#_
#_tcp|udp,incoming_port,local_computer_IP_addr/port
#_
#_Example:_t,80,192.168.168.2/80
#_this_will_open_worldwide_web_server_on_local_computer_192.168.168.2
#_
#_Example:_t,21,192.168.168.3/21
#_this_will_open_worldwide_ftp_server_on_local_computer_192.168.168.2
#_
#_Comment_must_be_on_separate_line_start_with_"#_"_and_should_not_have_spaces
t,2300,192.168.0.2/2300
t,2400,192.168.0.2/2400
pytanie czy aby uzyskać ten nieszcęsny zakres od 2300 do 2400 musze wpisać każdy port?