Community discussions

MikroTik App
 
User avatar
n2m
newbie
Topic Author
Posts: 47
Joined: Mon Feb 25, 2008 8:48 am

Protect Graphs by viewing from others(proxy enabled)!

Wed Jul 02, 2008 4:18 pm

I have ip web-proxy enabled on port 8080 and im preventing it being used as an open-proxy in ip firewall.

My goal is to make the graphs available only from my ip(with the proxy enabled). I have tried to set an allow rule on the tool graphing with my ip, but it doesn't work(with proxy enabled only), so i had to set the gateway of my router as an allow rule to let me see the graphs, but they can be seen from anyone on my network. My ip is 192.168.0.80, and my gateway is 192.168.0.254.

/ ip firewall filter add chain=input in-interface=ether1 protocol=tcp dst-port=8080 action=drop
this is the ip firewall filter rule to prevent using the proxy as open-proxy i used.

Thanks in advance.
 
User avatar
Giepie
Member
Member
Posts: 432
Joined: Mon Sep 13, 2004 12:33 pm
Location: Western Cape, South Africa
Contact:

Re: Protect Graphs by viewing from others(proxy enabled)!

Sun Jul 06, 2008 10:27 am

I suggest changing your DST Nat rule so it doesn't cache your router's IP:

/ip firewall nat add chain=dstnat dst-port=80 dst-address=!192.168.1.254 action=dst-nat to-ports=8080

(Where 192.168.1.254 is your router's IP). You could also make use of an address list.
 
User avatar
n2m
newbie
Topic Author
Posts: 47
Joined: Mon Feb 25, 2008 8:48 am

Re: Protect Graphs by viewing from others(proxy enabled)!

Thu Jul 10, 2008 10:52 am

Thank you. Much appreciated :D. Working

Who is online

Users browsing this forum: RBrogen and 119 guests