Re: [Vietlug] Khai bao IP range trong squid nhu the nao cho dung?

2004-10-22 Hội thoại Larry Nguyen
On 5:16:11 am 10/22/04 hypoj [EMAIL PROTECTED] wrote:
 To^i ca^`n khai ba'o mo^.t acl trong squid tro? va`o mo^.t so^' PC
 trong LAN ma` tho^i, kho^ng pha?i ca? subnet, to^i dda~ thu+?

 acl myclient src 192.168.1.200-192.168.1.230/24
 acl myclient src 192.168.1.200/24-192.168.1.230/24

 nhu+ng xem ra squid kho^ng chi.u ca'ch na`o ca?.



Xem nhu+ ba'c muo^'n 30 hosts cho squid access. To make life simple :),
please use

acl myclient src 192.168.1.0/27

[EMAIL PROTECTED] rhs $ ipcalc 192.168.1.0/27

Address:   192.168.1.0   1100.10101000.0001.000 0
Netmask:   255.255.255.224 = 27  ...111 0
Wildcard:  0.0.0.31  ...000 1
=
Network:   192.168.1.0/271100.10101000.0001.000 0
(Class C)
Broadcast: 192.168.1.31  1100.10101000.0001.000 1
HostMin:   192.168.1.1   1100.10101000.0001.000 1
HostMax:   192.168.1.30  1100.10101000.0001.000 0
Hosts/Net: 30(Private Internet RFC 1918)


-Larry

http://www.nhmlinux.net



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
VietLUG-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vietlug-users


Re: [Vietlug] Khai bao IP range trong squid nhu the nao cho dung?

2004-10-22 Hội thoại hypoj
Larry Nguyen wrote:
On 5:16:11 am 10/22/04 hypoj [EMAIL PROTECTED] wrote:
To^i ca^`n khai ba'o mo^.t acl trong squid tro? va`o mo^.t so^' PC
trong LAN ma` tho^i, kho^ng pha?i ca? subnet, to^i dda~ thu+?
acl myclient src 192.168.1.200-192.168.1.230/24
acl myclient src 192.168.1.200/24-192.168.1.230/24
nhu+ng xem ra squid kho^ng chi.u ca'ch na`o ca?.


Xem nhu+ ba'c muo^'n 30 hosts cho squid access. To make life simple :),
please use
acl myclient src 192.168.1.0/27
[EMAIL PROTECTED] rhs $ ipcalc 192.168.1.0/27
Address:   192.168.1.0   1100.10101000.0001.000 0
Netmask:   255.255.255.224 = 27  ...111 0
Wildcard:  0.0.0.31  ...000 1
=
Network:   192.168.1.0/271100.10101000.0001.000 0
(Class C)
Broadcast: 192.168.1.31  1100.10101000.0001.000 1
HostMin:   192.168.1.1   1100.10101000.0001.000 1
HostMax:   192.168.1.30  1100.10101000.0001.000 0
Hosts/Net: 30(Private Internet RFC 1918)
-Larry
Nhu+ ca'ch ba'c chi? thi` to^i pha?i ddo^?i ip address cho 30 host ve^` 
su+? du.ng address range 192.168.1.1-192.168.1.30 ??

Company's policy dda~ set address range cho tu+`ng loa.i client ne^n 
kho^ng tuy` tie^.n ddo^?i la.i ddu+o+.c ba'c a.

--
hypoj
Microsoft is not the answer, it is the question. The answer is NO!!!

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
VietLUG-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vietlug-users


Re: [Vietlug] Khai bao IP range trong squid nhu the nao cho dung?

2004-10-22 Hội thoại Larry Nguyen
On 12:16:52 pm 10/22/04 hypoj [EMAIL PROTECTED] wrote:

 
 Nhu+ ca'ch ba'c chi? thi` to^i pha?i ddo^?i ip address cho 30 host
 ve^` su+? du.ng address range 192.168.1.1-192.168.1.30 ??

 Company's policy dda~ set address range cho tu+`ng loa.i client ne^n
 kho^ng tuy` tie^.n ddo^?i la.i ddu+o+.c ba'c a.


Mi`nh 0 pha?i la` Cisco guru but I don't think it's possible. Ba'c co'
the^? tu+. chia no' nho? ra nhie^`u ca'i nhu+ sau

192.168.1.200/29 == 201- 206
192.168.1.208/29 == 209- 214
192.168.1.216/29  == 217-222
192.168.1.224/29  == 225-230

Xem http://www.cotse.com/networkcalculator.html


-Larry

http://www.nhmlinux.net



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
VietLUG-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vietlug-users


Re: [Vietlug] Khai bao IP range trong squid nhu the nao cho dung?

2004-10-22 Hội thoại Tran Vu Hung
hypoj wrote:
To^i ca^`n khai ba'o mo^.t acl trong squid tro? va`o mo^.t so^' PC 
trong LAN ma` tho^i, kho^ng pha?i ca? subnet, to^i dda~ thu+?

acl myclient src 192.168.1.200-192.168.1.230/24
acl myclient src 192.168.1.200/24-192.168.1.230/24
nhu+ng xem ra squid kho^ng chi.u ca'ch na`o ca?.
Ca'c ba'c cho xin va`i xu vo+'i. TIA
to^i co' do.an squid na`y xem co' giu'p gi` ddu+o+.c cho ca'c ba'c ko^ nhe\'
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks
acl bandomain dstdomain .itmas.net.vn .yahoo.com.au
http_access deny bandomain
acl deny_chathosts dst http.msg.yahoo.com au.yahoo.com
http_access deny deny_chathosts
acl deny_hosts src 192.168.1.192/26
http_access deny deny_hosts
acl ipp_hosts src 192.168.100.65/32 192.168.100.66/32 192.168.100.67/32 
192.168.100.68/32 192.168.100.69/32 192.168.100.70/3
2 192.168.100.73/32 192.168.100.74/32 192.168.100.76/32 
192.168.100.78/32 192.168.100.79/32 192.168.100.80/32 192.168.100.81
/32 192.168.100.82/32
http_access allow ipp_hosts
acl our_networks src 192.168.1.0/24 192.168.2.0/24

co^ng ty bo.n to^i
192.168.1.x
co^ng ty kha'ch ha`ng
192.168.100.x
chi? 192.168.1.x thi` ko^ ca^'m , nhu+ng range ip thuo^\.c 
192.168.100.60 de^'n 192.168.100.90 mo'i co' quye^`n truy ca^.p internet 
ma` tho^i\.


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
VietLUG-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vietlug-users


Re: [Vietlug] Khai bao IP range trong squid nhu the nao cho dung?

2004-10-22 Hội thoại Tran Vu Hung




Larry Nguyen wrote:

  Xem nhu+ ba'c muo^'n 30 hosts cho squid access. To make life simple :),
please use

acl myclient src 192.168.1.0/27

[EMAIL PROTECTED] rhs $ ipcalc 192.168.1.0/27

Address:   192.168.1.0   1100.10101000.0001.000 0
Netmask:   255.255.255.224 = 27  ...111 0
Wildcard:  0.0.0.31  ...000 1
=
Network:   192.168.1.0/271100.10101000.0001.000 0
(Class C)
Broadcast: 192.168.1.31  1100.10101000.0001.000 1
HostMin:   192.168.1.1   1100.10101000.0001.000 1
HostMax:   192.168.1.30  1100.10101000.0001.000 0
Hosts/Net: 30(Private Internet RFC 1918)

que^n nu+~a hi`nh nhu+ ca^u le^.nh na`y thie^'u tham so^' thi` pha?i,
em thu+? ma~i ro^`i nhu+ng va^~n ko^ ra


[EMAIL PROTECTED] rhs $ ipcalc 192.168.1.0/27









Re: [Vietlug] Khai bao IP range trong squid nhu the nao cho dung?

2004-10-22 Hội thoại hypoj
Tran Vu Hung wrote:
que^n nu+~a hi`nh nhu+ ca^u le^.nh na`y thie^'u tham so^' thi` pha?i, em 
thu+? ma~i ro^`i nhu+ng va^~n ko^ ra

[EMAIL PROTECTED] rhs $ ipcalc 192.168.1.0/27
man ipcalc ;-)
--
hypoj
Microsoft is not the answer, it is the question. The answer is NO!!!

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
VietLUG-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vietlug-users