Hi all,
I have setup a pptp connection in an attempt to remotely manage the linksys wireless access points that exist on a mikrotik hotspot.
Hotspot internal ip is 192.168.1.1
I have given myself 192.168.1.11 when I sucessfully pptp into the router from the internet.
I can’t seem to connect ping or connect to any of the ap’s behind the router.
Access points have static ip’s such as 192.168.1.5
What would be the recommended suggestion to achieve this?
I noticed if someone is logged into the hotspot, I can access the computer they have authenticated on. We have an internet cafe and I can browse files on the computers ( \192.168.1.40\c$ ) while a guest is using the computer.
block ports 135-139 and 445 and also make sure forwarding is disabled on all wireless clients.. That will eliminate the filesharing problem as well as disable client to client communciatons.
the port block on 135-139/445 together with forwarding=off will only work for WLAN interface. As to your linksys AP connected to an ether port on the MT, no matter what you do you cannot prevent Windows workstations to see each other. Search for previous discussions on this matter.
Accessing your AP’s from your wireless network should be ok - log on from a wireless workstation to your linksys AP and access it by typing the AP’s address.
Accessing the AP’s remotelly would be a little tricky. I havent tried it yet but you can try to do some port forwarding by adding a rule on the input firewall. Im not sure if you can set remote access port other than port80 on your linksys AP.
sure you can… windows workstations use NetBIOS and MS Directory services to communicate with each other. By droping these services with the firewall it eliminates the possibility that a user can share/browse files across your network.
I missed the part where this was an ethernet network, so yeah default forwarding wouldn’t do much good.
What if you did the following:
ip firewall filter add chain=forward src-address=10.0.0.0/16 dst-address=10.0.0.0/16 action=drop
Wouldn’t that drop all client to client communications? maybe add an in-interface to that rule..
i have no problem blocking NetBIOS traffic on my network.. By blocking UDP and TCP ports 135-139 and TCP 445 there is no way for windows networking to work/browse/function…
Going back to the original post by shanen_au, I also need to remotely manage an access point behind a MikroTik hotspot.
In my case, I just want to be able to reach the AP through the http port, which is configured to be 82. And even though I followed the information on http://www.mikrotik.com/docs/ros/2.9/ip/nat, I cannot get to the AP from the Internet.
Below are my NAT rules as well as my filter rules, where a.b.c.d is the WAN IP address of the MT.
/ip firewall nat prin
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; masquerade hotspot network
chain=srcnat out-interface=wan src-address=192.168.0.0/24
action=masquerade
1 ;;; masquerade for private network
chain=srcnat out-interface=wan src-address=192.168.1.0/24
action=masquerade
2 chain=dstnat dst-address=a.b.c.d protocol=tcp dst-port=82
action=dst-nat to-addresses=192.168.0.2 to-ports=82
3 chain=srcnat src-address=192.168.0.2 protocol=tcp src-port=82
action=src-nat to-addresses=a.b.c.d to-ports=82
/ip firewall filter print
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; Drop invalid connection packets
chain=input connection-state=invalid action=drop
1 ;;; Allow established connections
chain=input connection-state=established action=accept
2 ;;; Allow related connections
chain=input connection-state=related action=accept
3 ;;; Allow UDP
chain=input protocol=udp action=accept
4 ;;; Allow ICMP ping
chain=input protocol=icmp action=accept
5 ;;; From private network
chain=input src-address=192.168.1.0/24 action=accept
6 ;;; From hotspot network
chain=input src-address=192.168.0.0/24 action=accept
7 ;;; Log everything else
chain=input action=log log-prefix=""
By the way, I noticed that I have two srcnat chains. Can the problem be related to this?
Also, the counters of the dst-nat rule increase when I try to login the AP, but I get no reply. How can I find out if a filter rule is blocking the reply from the AP?