exemen's blog

** Pronouns is way to written **

ssh connection timeout (debian)

~/.ssh/config

Host *
ServerAliveInterval 60

/etc/ssh/ssh_config

ServerAliveInterval 60

cisco aironet radius authentication

aaa group server radius company-radius
server 1.1.1.1 auth-port 1645 acct-port 1646
server 1.1.1.2 auth-port 1645 acct-port 1646
aaa authentication login radius_methods2 group company-radius local
aaa authorization exec default group radius local if-authenticated

radius-server host 1.1.1.1 auth-port 1645 acct-port 1646 key 7
radius-server host 1.1.1.2 auth-port 1645 acct-port 1646 key 7

line con 0
line vty 0 4
privilege level 15
login authentication radius_methods2
transport input telnet

cisco switch radius authentication

 

aaa authentication login radsrv group radius local

ip ssh time-out 90
ip ssh authentication-retries 5
lldp run

radius-server host 1.1.1.1 auth-port 1645 acct-port 1646 key 7 05181SEERF1C2EDERSC5C195C4C44

line con 0
line vty 0 4
login authentication radsrv
transport input telnet
line vty 5 15
login authentication radsrv
transport input telnet
!

Nagios eventhandler script for sonicwall firewall in order to reset vpn connection

#!/usr/bin/expect
set login “admin”
set addr “1.1.1.1”
set pw “password123″

spawn ssh -t $addr
expect “User:”
send “admin\r”
expect “Password:”
send “$pw\r”
expect “comp-fw>”
send “configure\r”
expect “])>”
send “vpn disable VPN1\r”
expect “])>”
sleep 4
send “vpn enable VPN1\r”
expect “])>”
send “end\r”
expect “comp-fw>”
send “exit\r”
interact

apache web server ldap authentication with microsoft AD

AuthType Basic
AuthName “Network Credentials Required”
AuthBasicProvider ldap
AuthLDAPURL “ldap://dc1.company.com/ou=Users,dc=company,dc=com?sAMAccountName?sub?(objectClass=*)”
AuthLDAPBindDN “CN=ldapconfreader,dc=company,dc=com”
AuthLDAPBindPassword “password123″
Require valid-user

 

Hint: Check the full path of LDAP user from AD property of involved user/group

Follow

Get every new post delivered to your Inbox.