Posts

Showing posts from February, 2013

Dual Nic both facing internet

You have two public ip address need to see both on internet and you ate your whole day... Me too kindly comment if yours worked!!!!! eth0 192.168.0.161 on network 192.168.0.0 gateway 192.168.0.1 eth1 192.167.0.51 on network 192.1687.0.9 gateway 192.167.0.1 Here! Create two routing tables T0 and T1 add t /etc/iproute2/rt_tables Add these lines 100    T0 101    T1 ip route add 192.167.0.0 dev eth1 src 192.167.0.161 table T1 ip route add default via 192.167.0.1 table T1 ip route add 192.168.0.0 dev eth0 src 192.168.0.51 table T0 ip route add default via 192.168.0.1 table T0 Next ip route add 192.167.0.0 dev eth1 src 192.167.0.51 ip route add 192.168.0.0 dev eth0 src 192.168.0.161 next ip route add default via eth1 ( this might be already configured ) * NOTE you might have the default gateway on eth0 * next ip rule add from 192.167.0.161 table T1 ip rule add from 192.168.0.51 table T0 Thanks to the urls below: http://www.wlug.org.nz/SourceBasedRoutin

Can't use proxy because no authentication schemes are fully configured.

So you are having problems on webmin + squid authentication ? My current setup is below. I was eating my finger nails asking why before it was working and now it doesnt. System hostname localhost.localdomain (127.0.0.1) Operating system CentOS Linux 6.3 Webmin version 1.620 Virtualmin version 3.98.gpl GPL Earn  money  register free! [root@122 ~]# service squid start Starting squid:                                            [FAILED] 2013/02/23 00:17:00| Processing Configuration File: /etc/squid/squid.conf (depth 0) 2013/02/23 00:17:00| ERROR: '0.0.0.0/0.0.0.0' needs to be replaced by the term 'all'. 2013/02/23 00:17:00| SECURITY NOTICE: Overriding config setting. Using 'all' instead. 2013/02/23 00:17:00| WARNING: (B) '::/0' is a subnetwork of (A) '::/0' 2013/02/23 00:17:00| WARNING: because of this '::/0' is ignored to keep splay tree searching predictable 2013/02/23 00:17:00| WARNING: You should probably remov

Ethical Hacking Prevent Directory Traversal Attack

http://www.hackingloops.com/2012/09/hacking-websites-using-directory-traversal-attacks.html https://www.owasp.org/index.php/Top_10_2007-Malicious_File_Execution

Rewrite on .htaccess

Original article: http://onearth-syokhabis.blogspot.com/2011/08/how-to-install-modrewrite-to-linux.html?showComment=1360645631881#c3387048594454805636 Error Document 403 "Pencerobohan.. pencerobohan telah dikesan!" RewriteEngine On RewriteCond %{REQUEST_METHOD} (GET|POST) [NC] RewriteCond %{HTTP_USER_AGENT}^.*(nessus|havij|libwww|perl|python|nikto|acunetix|morfeu|w3af).* [NC,OR] RewriteCond %{QUERY_STRING}.*(union|select|cast|char|convert|declare|delete|drop|exec|insert|meta|script|hex|unhex|concat|set|truncate|update|).* [NC] RewriteRule (.*) - [F,L]

Get all ip address using grep

grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'