Posts

Showing posts from February, 2011

Outside NAT script on Linux

/sbin/ifconfig eth1:1 202.141.240.174 netmask 255.255.255.248 /sbin/ifconfig eth1:1 up /sbin/iptables -t nat -A PREROUTING -j DNAT -d 202.141.240.174 --to-destination 192.168.0.22 /sbin/iptables -t nat -A POSTROUTING -j SNAT -s 192.168.0.22/32 -d 0/0 --to-source 202.141.240.174 Another useful link http://home1.gte.net/res0psau/security/nat-on-linux.html http://www.cyberciti.biz/faq/linux-demilitarized-zone-howto/

Implementation of central authentication from Active Directory for Samba Shares

You have configure Kerberos and Winbind to join Active Directory. Configure Samba to use ADS in globals [global] workgroup = ******* realm = ******.COM.PK server string = ***** security = ADS map to guest = Bad Uid password server = ip adrress of Domain Controller log file = /var/log/samba/log.%m max log size = 50 idmap uid = 100000-200000 idmap gid = 100000-200000 cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [Test] path = /d/infopool valid users = rahat.khan, *******\Administrators, *****\rahat.khan admin users = ******\rahat.khan write list = ******\rahat.khan acl group control = Yes guest ok = yes