Community discussions

MikroTik App
 
schnapsbrenner
just joined
Topic Author
Posts: 2
Joined: Mon May 19, 2014 5:06 pm

Startup questions

Mon May 19, 2014 5:20 pm

Good afternoon all together,

I just started with my Mikrotik router and I'm not quite 100% sure how to configure it. I would like to know:
- How can I hange the access on the WAN port for the webif form port 80 to secured ssl-port 433? I activated port 443 in the /IP-SERVICES bit but when I try to open it in my browser nothing happens.
- In addition to that I would like to allow only SSH and SSL on my WAN interface for now. No other connections should be allowed on the WAN interface (but of course my Wifi and internal network should still be able to open webpages). How would a firewall config look like? I used the last two days with different tries but the only thing I was able to do was to block all traffic or nothing.

I would be very thankful for some help from the board.

kind regards
Schnapsbrenner
 
User avatar
scotthammersley
Member Candidate
Member Candidate
Posts: 230
Joined: Fri Feb 22, 2013 7:16 pm
Location: Jackson, MS
Contact:

Re: Startup questions

Tue May 20, 2014 9:54 pm

To allow only SSH and SSL on your WAN interface (must change the interface to your WAN):

Also a good practice to use SAFE MODE when adding firewall rules. In winbox click the button at the top left side. For CLI, CTRL+X.

**This will block everything except tcp/22 and tcp/443 destined for the router on your selected interface. You may consider adding the winbox port tcp/8291**

/ip firewall filter
add action=drop chain=input comment="Allow SSL and SSH" disabled=no in-interface=YOURINTERFACENAME protocol=tcp ports=!22,443
 
schnapsbrenner
just joined
Topic Author
Posts: 2
Joined: Mon May 19, 2014 5:06 pm

Re: Startup questions

Sun May 25, 2014 6:29 pm

Thanks a lot it worked out very well :)
To allow only SSH and SSL on your WAN interface (must change the interface to your WAN):

Also a good practice to use SAFE MODE when adding firewall rules. In winbox click the button at the top left side. For CLI, CTRL+X.

**This will block everything except tcp/22 and tcp/443 destined for the router on your selected interface. You may consider adding the winbox port tcp/8291**

/ip firewall filter
add action=drop chain=input comment="Allow SSL and SSH" disabled=no in-interface=YOURINTERFACENAME protocol=tcp ports=!22,443
 
User avatar
scotthammersley
Member Candidate
Member Candidate
Posts: 230
Joined: Fri Feb 22, 2013 7:16 pm
Location: Jackson, MS
Contact:

Re: Startup questions

Tue May 27, 2014 6:09 pm

Great, no problem.