Page 1 of 1
need help with nat and p2p
Posted: Thu Jul 16, 2015 10:41 pm
by TIQA
hello.
i just upgraded from some old linksys to mikrotik hap and have trouble configuring my freenas server so that everything works. so far all is working good except torrent client cannot connect to trackers and links. where could be the problem?
Re: need help with nat and p2p
Posted: Fri Jul 17, 2015 1:32 pm
by purana
hello.
i just upgraded from some old linksys to mikrotik hap and have trouble configuring my freenas server so that everything works. so far all is working good except torrent client cannot connect to trackers and links. where could be the problem?
Would probably need to start with posting an export of your configuration (without any passwords or anything else included), so we can see what is configured.
Re: need help with nat and p2p
Posted: Mon Jul 20, 2015 7:26 pm
by TIQA
# jul/16/2015 21:33:45 by RouterOS 6.30
# software id = YJ1F-WC00
#
/interface bridge
add admin-mac=E4:8D:8C:88:FE:DB auto-mac=no name=bridge-local
/interface ethernet
set [ find default-name=ether1 ] mac-address=00:13:05:89:FF:FF name=\
ether1-gateway
set [ find default-name=ether2 ] name=ether2-master-local
set [ find default-name=ether3 ] master-port=ether2-master-local name=\
ether3-slave-local
set [ find default-name=ether4 ] master-port=ether2-master-local name=\
ether4-slave-local
/interface wireless
set [ find default-name=wlan1 ] antenna-gain=2 band=2ghz-onlyn channel-width=\
20/40mhz-Ce country=latvia disabled=no distance=indoors frequency=auto \
frequency-mode=superchannel l2mtu=1600 mode=ap-bridge rx-chains=0,1 ssid=\
xxxxx tx-chains=0,1 wireless-protocol=802.11
/ip neighbor discovery
set ether1-gateway discover=no
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=\
dynamic-keys wpa-pre-shared-key=xxxx wpa2-pre-shared-key=xxxx
/ip pool
add name=dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge-local name=default
/interface bridge port
add bridge=bridge-local interface=ether2-master-local
add bridge=bridge-local interface=wlan1
/ip address
add address=192.168.88.1/24 comment="default configuration" interface=\
ether2-master-local network=192.168.88.0
/ip dhcp-client
add comment="default configuration" dhcp-options=hostname,clientid disabled=\
no interface=ether1-gateway
/ip dhcp-server lease
add address=192.168.88.251 client-id=1:0:50:8d:75:3a:9 mac-address=\
00:50:8D:75:3A:09 server=default
/ip dhcp-server network
add address=192.168.88.0/24 comment="default configuration" gateway=\
192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add chain=input comment="default configuration" protocol=icmp
add chain=input comment="default configuration" connection-state=\
established,related
add action=drop chain=input comment="default configuration" in-interface=\
ether1-gateway
add chain=forward comment="default configuration" connection-state=\
established,related
add action=drop chain=forward comment="default configuration" \
connection-state=invalid
add action=drop chain=forward comment="default configuration" \
connection-nat-state=!dstnat connection-state=new in-interface=\
ether1-gateway
add chain=forward p2p=all-p2p
/ip firewall nat
add action=masquerade chain=srcnat comment="default configuration" \
out-interface=ether1-gateway
add action=dst-nat chain=dstnat dst-address=xxx dst-port=13134 \
protocol=tcp to-addresses=192.168.88.251 to-ports=80
add action=dst-nat chain=dstnat dst-address=xxx dst-port=8888 \
protocol=tcp to-addresses=192.168.88.12
add action=dst-nat chain=dstnat dst-address=xxx dst-port=51413 \
protocol=tcp to-addresses=192.168.88.15
add action=dst-nat chain=dstnat dst-address=xxx dst-port=9091 \
protocol=tcp to-addresses=192.168.88.15
add action=dst-nat chain=dstnat dst-address=xxx dst-port=4040 \
protocol=tcp to-addresses=192.168.88.13 to-ports=4040
add action=dst-nat chain=dstnat dst-address=xxx dst-port=789 \
protocol=tcp to-addresses=192.168.88.14 to-ports=80
add action=dst-nat chain=dstnat dst-address=xxx dst-port=4040 \
protocol=udp to-addresses=192.168.88.13
add action=masquerade chain=srcnat dst-address=192.168.88.0/24 src-address=\
192.168.88.0/24
/ip upnp
set enabled=yes
/ip upnp interfaces
add interface=bridge-local type=internal
add interface=ether1-gateway type=external
/system clock
set time-zone-autodetect=no time-zone-name=Europe/Riga
/system routerboard settings
set cpu-frequency=650MHz protected-routerboot=disabled
/tool graphing interface
add
/tool graphing resource
add
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2-master-local
add interface=ether3-slave-local
add interface=ether4-slave-local
add interface=wlan1
add interface=bridge-local
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2-master-local
add interface=ether3-slave-local
add interface=ether4-slave-local
add interface=wlan1
add interface=bridge-local
/tool romon port
add
this is my config.
Re: need help with nat and p2p
Posted: Tue Jul 21, 2015 5:39 pm
by TIQA
i guess everythings ok with router config, because i can upload and download in pc. so problem is in freenas config, still not sure what.