Tampilkan postingan dengan label Howto. Tampilkan semua postingan
Tampilkan postingan dengan label Howto. Tampilkan semua postingan

Minggu, Januari 29, 2012

Squid Password with htpassword

Today a successful configure squid in Ubuntu Server 11:10 and actually, once the basic settings yet there is something special, just re-read guide that is in here and here .

The next step I tried was mempassword squidnya, so that when people access, despite connect wirelessly browsing when will be forced to login with the username and password that have been made using htpassword.

How to enable htpassword first is to install apache2, how to use apt-get it, and I use NCSA Authentication Helper. Follow the steps as follows:

1. Creating a directory to store the Username and Password htpasswordnya.

eg: # mkdir / usr / lib / squid / NCSA / / * is intended spy a directory with squidnya.

2. Run the command htpassword directly from the terminal, eg:

~ # Htpasswd-c / usr / lib / squid / NCSA / login.auth dobelden / / *-c option to create the user first, if you will add a user, the same command without the-c it.

The command above means that we make direktoru login.auth and user dobelden, when there will dienter enter the new password command, follow it.

3. Setting Edit / etc / squid / squid.conf in the following sections:

auth_param basic realm Squid-Proxy-Server
auth_param basic program / ​​usr / lib / squid / ncsa_auth / usr / lib / squid / NCSA / login.auth
auth_param basic children 5
2 hours auth_param basic credentialsttl
auth_param basic caseSensitive off
REQUIRED acl ncsa_users proxy_auth

4. On the local network http_access http_access below us, attach:

http_access allow ncsa_users

After that restart squidnya, and please be tested with external connection, or from our external network, by installing a manual on the internet browser options, when in Firefox in the Menu-Option-Option-Advanced-Network-Settings and enter our proxy server IP and test by browsing, viewing requests when existing Username and Password settings brarti we've succeeded.

Thus the way of preference, may be useful.

Jumat, Juli 24, 2009

interface configuration in debian lenny

Debian Lenny not so different with the previous version thereis no significant changes in the interfaces configuration and the command I usually do is I like this :

1. The main interfaces configuration

support@debian ~ $ /etc/network/interfaces

Here is the main input interface in the ip address that we have, such as :

address
netmask
network
broadcast
gateway
dns-servers

2. See the list Ip address

To see list ip address we can use command :

support@debian ~ $ ip a
support@debian ~ $ ifconfig

3. See to up interfaces that connected with network :

support@debian ~ $ mii-tools

with this command we can see the interfaces connected to the network

4. To reconfigure named of interfaces, just edit this file :

support@debian ~ $ vim /etc/udev/rules.d/70_persistent-net.rules

in this file we change our interface name like : eth0 change with : eth1 , etc..

have a try...