Community discussions

MikroTik App
 
kitkat
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Sun Jun 12, 2011 7:32 pm

question on configuring WEBfig

Sat Sep 24, 2011 5:19 am

Hi,

How do you control WEBfig? I want to move it from port 80 to another non-standard port and have the interface accessible from the WAN public IP?

Thanks
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: question on configuring WEBfig

Sat Sep 24, 2011 5:29 am

Configure the port in "/ip service". Access is controlled by the address parameter in that configuration section, as well as the firewall filter input chain.
 
kitkat
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Sun Jun 12, 2011 7:32 pm

Re: question on configuring WEBfig

Sat Sep 24, 2011 6:05 am

thanks ill try that, also, is there a standard firewall list I can simply copy and start from there?
 
kitkat
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Sun Jun 12, 2011 7:32 pm

Re: question on configuring WEBfig

Sat Sep 24, 2011 6:07 am

I enabled www-ssl in ip service list and no address, and I cannot access the webfig using https...
 
tjc
Member Candidate
Member Candidate
Posts: 276
Joined: Sun Jul 10, 2011 3:08 am

Re: question on configuring WEBfig

Sat Sep 24, 2011 6:12 am

You have to give it a certificate for it to work.

As for a "standard" firewall there are a number described in the documentation on the wiki. http://wiki.mikrotik.com/wiki/Category:Firewall

A minimal one allows establish and related connection and drops anything else from the outside (WAN) interface.
/ip firewall connection tracking
set enabled=yes generic-timeout=10m icmp-timeout=10s tcp-close-timeout=10s \
    tcp-close-wait-timeout=10s tcp-established-timeout=1d \
    tcp-fin-wait-timeout=10s tcp-last-ack-timeout=10s \
    tcp-syn-received-timeout=5s tcp-syn-sent-timeout=5s tcp-syncookie=no \
    tcp-time-wait-timeout=10s udp-stream-timeout=3m udp-timeout=10s

/ip firewall filter
add chain=input action=accept protocol=icmp comment="Allow ping and the like"
add chain=input action=accept connection-state=established comment="Allow established connections"
add chain=input action=accept connection-state=related comment="Allow related connections"
add chain=input action=drop connection-state=invalid comment="Drop invalid connections"
add chain=input action=drop in-interface=ether1-gateway comment="Drop anything else aimed at the router from outside"
# Implicitly accept anything else from inside

add chain=forward action=accept connection-state=established comment="Allow established connections"
add chain=forward action=accept connection-state=related comment="Allow related connections"
add chain=forward action=drop connection-state=invalid comment="Drop invalid connections"
add chain=forward action=drop in-interface=ether1-gateway comment="Drop anything else forwarded from outside"
# Implicitly accept anything else from inside

/ip firewall nat
add chain=srcnat action=masquerade out-interface=ether1-gateway comment="NAT from LAN to WAN"
These are some more complicated ones:
http://wiki.mikrotik.com/wiki/Securing_ ... rOs_Router
http://wiki.mikrotik.com/wiki/Dmitry_on_firewalling
 
kitkat
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Sun Jun 12, 2011 7:32 pm

Re: question on configuring WEBfig

Sat Sep 24, 2011 2:50 pm

thanks for the firewall stuff...

what do you mean a certificate? how is this done?
 
tjc
Member Candidate
Member Candidate
Posts: 276
Joined: Sun Jul 10, 2011 3:08 am

Re: question on configuring WEBfig

Sat Sep 24, 2011 5:59 pm

what do you mean a certificate? how is this done?
http://tldp.org/HOWTO/SSL-Certificates-HOWTO/x64.html

For private admin purposes a self signed certificate is probably sufficient.

Who is online

Users browsing this forum: Majestic-12 [Bot], tangent and 73 guests