Hey
I want to know how to block all websites except one.
And I want to leave any outgoing port Open.
Thanks
I didn't get it actually. I just bought my Mikrotik.You can setup ip web proxy and allow only the website you wanna pass there and deny all other sites.
Only http traffic wil be denied.
Enable dst-nat for your nat
/ip firewall nat
add action=redirect chain=dstnat dst-port=80 in-interface=****** protocol=tcp \
!to-addresses to-ports=8080
/ip proxy
set enabled=yes
/ip proxy access
add dst-host=www.hostyouwannaallow.*
add action=deny dst-host=*
Sorry about that. It won't happen again.i see you have opened another thread ??
The way it works is this :
You put this as first line in the firewalling when the in-interface is the interface where your packers arive .. if wireless put wlan there if your pc of pc's are connceted to ether1 you put ether1 there !
/ip firewall nat
add action=redirect chain=dstnat dst-port=80 in-interface=****** protocol=tcp \
!to-addresses to-ports=8080
/ip proxy
set enabled=yes
/ip proxy access
add action=allow dst-host=www.hotmail.com
add action=deny dst-host=*
To do it in the gui =
ip -> firewall -> nat -> +sign
GENERAL
chain: dstnat
protocol: 6 tcp
dst.port 80
in.interface = put your input interface here !
ACTION
action : redirect
to ports: 8080
Press ok.
Drag this rule to the first place.
Then go to ip -> web proxy
GENERAL
enable it
port : 8080
press button ACCESS
+ DST host : http://www.hotmail.com
action : allow
OK
+ DST host: *
action : deny
reenable the connection tracker in ip firewall .. pleaseStill the same....recconect
I did already.reenable the connection tracker in ip firewall .. pleaseStill the same....recconect
thanks alot.Problem solved it was due to old RouterOS version .
why making thread complicated thread starter want to allow one site not redirect to all webs @ specific web, so just only masqurade with dst address of website.
Hi! I 've just followed the steps, I do it for port 80 and 433 for https, but it blocks all websites including my website (google maps) wich I want to allow.i see you have opened another thread ??
The way it works is this :
You put this as first line in the firewalling when the in-interface is the interface where your blacklisted_site arive .. if wireless put wlan there if your pc of pc's are connceted to ether1 you put ether1 there !
/ip firewall nat
add action=redirect chain=dstnat dst-port=80 in-interface=****** protocol=tcp \
!to-addresses to-ports=8080
/ip proxy
set enabled=yes
/ip proxy access
add action=allow dst-host=www.hotmail.com
add action=deny dst-host=*
To do it in the gui =
ip -> firewall -> nat -> +sign
GENERAL
chain: dstnat
protocol: 6 tcp
dst.port 80
in.interface = put your input interface here !
ACTION
action : redirect
to ports: 8080
Press ok.
Drag this rule to the first place.
Then go to ip -> web proxy
GENERAL
enable it
port : 8080
press button ACCESS
+ DST host : http://www.hotmail.com
action : allow
OK
+ DST host: *
action : deny
HI, im config router by gui but i type mail.yahoo.com , it process. i don t understand. i deny * Please explain for mei see you have opened another thread ??
The way it works is this :
You put this as first line in the firewalling when the in-interface is the interface where your packers arive .. if wireless put wlan there if your pc of pc's are connceted to ether1 you put ether1 there !
/ip firewall nat
add action=redirect chain=dstnat dst-port=80 in-interface=****** protocol=tcp \
!to-addresses to-ports=8080
/ip proxy
set enabled=yes
/ip proxy access
add action=allow dst-host=www.hotmail.com
add action=deny dst-host=*
To do it in the gui =
ip -> firewall -> nat -> +sign
GENERAL
chain: dstnat
protocol: 6 tcp
dst.port 80
in.interface = put your input interface here !
ACTION
action : redirect
to ports: 8080
Press ok.
Drag this rule to the first place.
Then go to ip -> web proxy
GENERAL
enable it
port : 8080
press button ACCESS
+ DST host : http://www.hotmail.com
action : allow
OK
+ DST host: *
action : deny