tips berguna:-
rule iptables ini utk drop semua connection dari lan ke outside dan benarkan proxy access sahaja
server: 192.168.1.1
LAN : 192.168.1.0/24
----------------------------- MULA RULES --------------------------------------------
iptables -N SUKAT
iptables -A FORWARD -s 192.168.1.0/24 -j SUKAT
#reject semua connection dulu
iptables -I SUKAT -p tcp -j REJECT
#kasik server lepas semua port
iptables -I SUKAT -s 192.168.1.1 -j ACCEPT
#kasik LAN lepas port 3128
iptables -I SUKAT -p tcp -d 192.168.1.1 --dport 3128 -j ACCEPT
---------------------------- TAMAT ------------------------------------------------------
dengan cara ini LAN tidak dapat lepasi proxy sekalipun menggunakan proxy luar lain.. mudah kan!
Windows and linux information and one stop centre for myself. Having difficulties to remember all things at once. This blog will remain be my references on the internet. Other people can take benefit from it. Thank you for visiting
Subscribe to:
Post Comments (Atom)
Simple Python Calculator This script will allows your to calculate the integers given with the chosen operation. You can add, substract, mu...
-
when trying to apt-get update i got this error message :- W: There is no public key available for the following key IDs xxxxxxxxxxxx t...
-
Skrip ini aku guna kat server aku.. backup mysql setiap hari. Hanya perlu ubah pada bahagian setting sahaja. chmod dan set cron untuk daily ...
-
This tutorial will help you get AWStats and Lighttpd working together. AWStats is an excellent log analyzer, and works well with Lighttpd. T...
No comments:
Post a Comment