នៅក្រសួង
កាំមេរ៉ាសុវត្ថិភាពមេ
ដាច់ហើយ
កាំមេរ៉ាសុវត្ថិភាពមេ
ដាច់ហើយ
(MME CCTV is Down)
nimsambath.blogspot.com
^.+(facebook.com).*$
http://localhost/ # or http://127.0.0.1Now you should access to your router web interface. Usually it is reachable by navigating to:
http://192.168.1.1However this may vary, depending on your router model. When in doubt, open the command prompt (
cmd
), type ipconfig
and press enter. You should see something like this:C:\>ipconfig Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 192.168.1.27 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1Please take note of the IP address: that’s your private address, which uniquely identifies you in your local network. If you try it in your browser, you should be able to see the public contents of your server.
80
should be redirected to your own private IP address. Even this process may vary; it really depends on your router. By the way, this is what you basically want to do: forward every request on port 80
to 192.168.1.27
(of course you must use your own IP address). But since the router’s web server already keeps the port 80
busy, here’s what you can do:httpd.conf
and find this row:Listen 80replace it with:
Listen <port number>for example:
Listen 8080And restart the server. Now go to
http://localhost:8080
and check that everything went as expected.Private IP Private Port Type Public IP/mask Public Port 192.168.1.27 8081 TCP 0.0.0.0/0 8081 192.168.1.27 8081 UDP 0.0.0.0/0 8081Apply the changes and restart your router.
httpd.conf
and find this line:ServerName localhost:80Change it to:
ServerName <your private IP>:80Example:
ServerName 192.168.1.27:80Just a quick note: you can jump over the step below. It can be done in an easier way by just clicking on the green WampServer tray icon and choosing “Put Online”.
Order Deny,Allow Deny from allAllow from 127.0.0.1Change it to:
Order Allow,Deny Allow from allRestart your web server. Now just find out what’s your current public IP address and try to go to:
http://<public IP address>:<port>/i.e.:
http://13.37.223.21:8080/
/ip firewall address-list add address=192.168.1.195 comment="" disabled=no list=fbWhitelist add address=192.168.1.198 comment="" disabled=no list=fbWhitelist add address=192.168.1.194 comment="" disabled=no list=fbWhitelist add address=31.13.24.0/21 comment="" disabled=no list=fb add address=31.13.64.0/18 comment="" disabled=no list=fb add address=66.220.144.0/20 comment="" disabled=no list=fb add address=69.63.176.0/20 comment="" disabled=no list=fb add address=69.171.224.0/19 comment="" disabled=no list=fb add address=74.119.76.0/22 comment="" disabled=no list=fb add address=103.4.96.0/22 comment="" disabled=no list=fb add address=173.252.64.0/18 comment="" disabled=no list=fb add address=204.15.20.0/22 comment="" disabled=no list=fb |
/ip firewall filter add action=drop chain=forward comment="facebook drop" disabled=no dst-address-list=fb dst-port=80 in-interface=lan protocol=tcp src-address-list=!fbWhitelist |
You can Copy & Paste the code above at below:
^.+(facebook.com|youtube).*$
At General Tabs for Chain, Please Choose : Foward |
At Advanced tabs, select 'DENIED' (rule that you have create at step 1) for Layer7 Protocols |
Choose Action 'DROP' |
/ip firewall nat add chain=dstnat dst-address=180.241.111.312 protocol=tcp dst-port=80 action=dst-nat to-addresses=192.168.1.10 to-ports=80 comment=”forward web server”Forward IP for File Server
/ip firewall nat add chain=dstnat dst-address=180.241.111.312 protocol=tcp dst-port=139 action=dst-nat to-addresses=192.168.1.20 to-ports=139 comment=”forward file server
/ip firewall nat add chain=dstnat dst-address=180.241.111.312 protocol=tcp dst-port=3000 action=dst-nat to-addresses=192.168.1.30 to-ports=22 comment=”forward SSH server”
Camera 1 | Camera 2 | |
IP Address | 192.168.1.101 | 192.168.1.102 |
Subnet Mask | 255.255.255.0 | 255.255.255.0 |
Gateway | 192.168.1.1 | 192.168.1.1 |
HTTP Port | 80 | 81 |
Client Port | 8000 | 8001 |
Router 1 | Router 2 | DVR | ||
WAN | IP address | External IP address (information from the ISP) | 192.168.1.100 | |
Subnet Mask | Subnet Mask (information from the ISP) | 255.255.255.0 | ||
Gateway | Gateway (information from the ISP) | 192.168.1.1. | ||
LAN | IP address | 192.168.1.1 | 10.0.0.1 | 10.0.0.2 |
Subnet Mask | 255.255.255.0 | 255.255.255.0 | 255.255.255.0 | |
Gateway | 10.0.0.1 | |||
Required ports | 81, 8001 |