LIVE FEED :: 11111110.00000000.00000000.00000001

Tugriceri Web Notes

Operational telemetry, Linux internals, forensic carving, and infrastructure automation war stories. by Emre Tugriceri.

88 Field Runbooks 30 System Taxonomies Archive: 2013 – 2026 SYS_HEALTH: OPTIMAL
Emre Tugriceri • • 1 min read
Security

other ssl issue with my own ca

/root/tugriceri.com_CA/ca/
cat ca.conf
[ ca ]
default_ca = ca_default
[ ca_default ]
dir = /root/tugriceri.com_CA/ca/
certs = /root/tugriceri.com_CA/ca/
new_certs_dir = /root/tugriceri.com_CA/ca/ca.db.certs
database = /root/tugriceri.com_CA/ca/ca.db.index
serial = /root/tugriceri.com_CA/ca/ca.db.serial
RANDFILE = /root/tugriceri.com_CA/ca/ca.db.rand
certificate = /root/tugriceri.com_CA/ca/ca.crt
private_key = /root/tugriceri.com_CA/ca/ca.key
default_days = 365
default_crl_days = 30
default_md = md5
preserve = no
policy = generic_policy
[ generic_policy ]
countryName = optional
stateOrProvinceName = optional
localityName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional


openssl ca -config ca.conf -notext -out one.tugriceri.com/one.tugriceri.com.cer -infiles one.tugriceri.com/one.tugriceri.com.csr

openssl x509 -req -days 365 -in one.tugriceri.com/one.tugriceri.com.csr -CA ca/ca.crt -CAkey ca/ca.key -CAcreateserial -out one.tugriceri.com/one.tugriceri.com.cer

openssl verify -CAfile ../ca/ca.crt one.tugriceri.com.cer

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Firewalls

Snoop with ssg

SSGW-> snoop filter ip src-ip 192.168.1.2 dst-ip 192.168.5.6
snoop filter added
SSGW-> snoop
Start Snoop, type ESC or 'snoop off' to stop, continue? [y]/n y
SSGW->
SSGW-> clear dbuf
SSGW-> get dbuf stream
...
SSGW-> snoop off

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Security

pfx to key

openssl pkcs12 -export -in my.pem -nodes -out my.pfx
openssl pkcs12 -in my.pfx -out my-nodes.key -nodes -nocerts

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Cisco Network

fast "show run"

conf#parser config cache interface #show runin privelege mode, type "term len 0" "show run" or "show start" will be faster "show run brief"

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Cisco Network Security

Cisco SSH Configuration

conf# username cagri privilege 15 secret cisco"creates a user in local database with privelege level 15 and encrypted password cisco"conf#ip domain-name tugriceri.com"sets a domain name for the device"conf#crypto key generate rsa"creates a rsa key. in the next step encryption bits will be asked. default is 512. 1024 is better"conf#ip ssh version 2"change the version of ssh to 2"conf#line vty 0 4"go under the virtual teletype ports"conf-line#transport input ssh"and change the login type from telnet to ssh"conf-line#login local"device will look at the local user database to log in a user"

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Backup

Rsync Backup (with daemon option)

[root@srv ~]#vi /etc/xinetd.d/rsync "and change disable = yes to disable = no"
[root@srv ~]#service xinetd restart

[root@srv ~]#cat /etc/rsyncd.conf

[GFS]
path = /wwwroot/
comment = Webroot
auth users = rsync
secrets file = /etc/rsync.secrets
read only = false
list = yes
write only = false
[root@srv ~]# cat /etc/rsync.secrets
rsync:deneme

[root@backupsrv ~]# rsync -av rsync@192.168.1.1::GFS /backup/



Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Security

ssh Tunnel

shell# ssh -f root@192.168.2.54 -L 7200:192.168.2.54:7200 -N

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Spam

check: no loaded plugin implements 'check_main':

<i>check: no loaded plugin implements 'check_main': cannot scan! at</i><i> /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/PerMsgStatus.pm line</i><i> 164.<br /><br />vi init.pre<br /></i>loadplugin Mail::SpamAssassin::Plugin::Check<br />

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Firewalls Security

Bir Asa log u

Routingfailedtolocatenexthopfor icmp from outside...

Net1 de olması gereken bir host yada network net2 de tanımlanmış ise bu log ile karşılaşılır. Host u fln silip doğru yerde tanımlarını yapmak lazım.

Comments (0) Read Playbook →