Sunday, November 28, 2010

Mount And Blade Units Tree 1.011

Installation Configuration freeradius on Debian

Install and Configure FreeRadius

debian 5.0.6
FreeRADIUS Version 2.0.4

Install the necessary: \u200b\u200b
apt-get install phpmyadmin mysql-server freeradius freeradius-mysql

edit the clients.conf
vim / etc / freeradius / clients.conf

Insert / edit the following lines:

client localhost {ipaddr = 127.0
.0.1

secret = 123456789

shortname = nome_client

}

127.0.0.1 is the IP address of client inquest if the client resides on the same machine freeradius

sql.conf edit the file:
vim / etc / freeradius / sql.conf

enter / change the following lines:


{sql database = "mysql"
driver = "$ {database} rlm_sql_"
server = "localhost"
login = "radius" password
= "123456"
radius_db = "radius"

}

mysql server indicates the server, login and password are user and password to access mysql database name and radius_db

now need to create the mysql database in phpmyadmin, or you can use:

mysql-u root-p
the root password for mysql

CREATE DATABASE radius;
quit

radius and create the user password to 123456, and Privileggi its database for the radius

here is the sql file to create the various tables
http://wiki.freeradius.org/MySQL_DDL_script
or
http://github.com/alandekok/freeradius-server/blob/stable/raddb/sql/mysql/schema.sql

edit the file default:
vim / etc / freeradius / sites-available/default

make the following changes

Authorize {
# unix
# sql file

}

accounting {# unix

sql
}

in radiusd.conf
vim / etc / freeradius / radiusd.conf

uncomment or add

$ INCLUDE sql.conf

Test
radius in the table included in the database user and password in radcheck follows

mysql-u root-p
the root password for mysql

INSERT INTO radcheck (UserName, Attribute, Value) VALUES ('user', 'password', '1234 ');
quit

now we have added a user with user password 1234

now stopped freeradius / etc / init.d / freeradius stop

and we start in debug mode

freeradius-xxxx

and another terminal give the command

user radtest 000 000 123 456 789 0 127.0.0.1

where 123456789 is the password set in clients.conf

Headlight Cleaning Kits

Transparent Proxy with Squid


squid 5.0.6 Debian 2.7 kernel 2.6.26-
2-amd64

eth1 connected to the internet (192.168.1.0/24)
eth0 connected to LAN (192.168.2.0/24)

Transparent Proxy
should redirect all traffic on port 3128 proxy

to do this using the
following iptables rule iptables-t nat-A PREROUTING-i eth0-p tcp - dport 80-j REDIRECT - to-port 3128

to make permanent the rule I created the following file with the

command vim vim / etc / network / if-up.d / iptables

inside and must place the following lines

# / bin / sh # -----------

- ------------
NAT iptables-t nat-A POSTROUTING-o eth1-j MASQUERADE #

------------ ----- Transparent Proxy -------
iptables-t nat-A PREROUTING-i eth0-p tcp - dport 80-j REDIRECT - to-port 3128

now need to activate forwarding with the command vim and then I opened the following

file vim / etc / sysctl.conf

now find the line with:
net.ipv4.ip_forward

decomenntatela if it is commented out and set it to 1 = 1

net.ipv4.ip_forward

hours open :
vim / etc / squid / squid.conf

find the line with http_port and replace it with: 3128
http_port transparent

Enable your internal network
now enter or change the line
acl localnet src 192.168.2.0/24

where 192.168.2.0 should be replaced with the values \u200b\u200bof your internal network

and edit or insert the following line: http_access allow localnet