-
iptables configuration file
/etc/iptables.up.rules
# Generated by iptables-save v1.4.4 on Tue Jul 6 19:02:33 2010
*nat
:PREROUTING DROP [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -d 8.8.8.8 -i eth1 -j ACCEPT
-A PREROUTING -d 4.4.4.4 -i eth1 -j ACCEPT
-A PREROUTING -d w.x.y.z -i eth1 -j ACCEPT #(old mail server ip)
-A PREROUTING -d a.b.c.d -i eth1 -j ACCEPT #(mail server ip)
-A PREROUTING -d mail.uvw.in -i eth1 -j ACCEPT
-A PREROUTING -d l.m.n.o/29 -i eth1 -j ACCEPT #(old network ip)
-A PREROUTING -d r.s.t.u -i eth1 -j ACCEPT #(proxy server ip)
-A PREROUTING -d 122.c.d.146 -i eth1 -j ACCEPT #(allow ip)
-A PREROUTING -d 122.e.f.147 -i eth1 -j ACCEPT #(allow ip)
# Samba and Proxy
-A PREROUTING -p tcp -m tcp -m multiport -i eth1 -j ACCEPT --dports 139,445,3128,9000
-A POSTROUTING -s 10.1.5.0/24 -o eth0 -j MASQUERADE
-A PREROUTING -p tcp -m tcp --dport 11500 -j ACCEPT
-A PREROUTING -p tcp -m tcp -m multiport -i eth1 -j REDIRECT --to-ports 3128 --dports 80,8080,9000
COMMIT
# Completed on Tue Jul 6 19:02:33 2010
# Generated by iptables-save v1.4.4 on Tue Jul 6 19:02:33 2010
*mangle
:PREROUTING ACCEPT [602:341342]
:INPUT ACCEPT [568:338000]
:FORWARD ACCEPT [34:3342]
:OUTPUT ACCEPT [676:370648]
:POSTROUTING ACCEPT [710:373990]
COMMIT
# Completed on Tue Jul 6 19:02:33 2010
# Generated by iptables-save v1.4.4 on Tue Jul 6 19:02:33 2010
*filter
:INPUT ACCEPT [568:338000]
:FORWARD ACCEPT [34:3342]
:OUTPUT ACCEPT [676:370648]
COMMIT
# Completed on Tue Jul 6 19:02:33 2010
more
-
Network/ethernet card configuration file
Editing file /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address w.x.y.z
netmask 255.255.255.248
gateway w.x.y.u
dns-nameservers a.b.c.d
metric 1
post-up iptables-restore < /etc/iptables.up.rules
#Secondary network interface
auto eth1
iface eth1 inet static
address 10.1.5.1
netmask 255.255.255.0
network 10.1.5.0
broadcast 10.1.5.255
metric 2
more
-
Relational Database - Codd's Rules
Relational Database - Codd's Rules !!!A relational database management system (RDBMS) is a database management system (DBMS) that is based on the relational model as introduced by E. F. Codd. Most popular commercial and open source databases currently in use are based on the relational database model.A short definition of an RDBMS may be a DBMS in which data is stored in the form of tables and the relationship among the data is also stored in the form of tables.
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">Codd's Rules- All database management must take place using the relational database's innate functionality
- All information in the database must be stored as values in a table
- All database information must be accessible through the combination of a table name, primary key and column name.
- The database must use NULL values to indicate missing or unknown information
- The database schema must be described using the relational database syntax
- The database may support multiple languages, but it must support at least one language that provides full database functionality (e.g. SQL)
- The system must be able to update all updatable views
- The database must provide single-operation insert, update and delete functionality
- Changes to the physical structure of the database must be transparent to applications and users.
- Changes to the logical structure of the database must be transparent to applications and users.
- The database must natively support integrity constraints.
- Changes to the distribution of the database (centralized vs. distributed) must be transparent to applications and users.
- Any languages supported by the database must not be able to subvert integrity controls.
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">Tags: database, table, DBMS, RDBMS, columns, Codd, E. F. Codd, rules, oracle, data================================================ O************************O***********************O
more
-
Apt-Get command line tool
Apt-Get command line tool(Ubuntu's Advanced Packaging Tool) !!!
The apt-get command is a powerful command-line tool used to work with Ubuntu's Advanced Packaging Tool (APT) performing such functions as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Ubuntu system.
*Install package
#sudo apt-get install packagename
*Remove Package
#sudo apt-get remove packagename
*Install Multiple Packages
#sudo apt-get install packagename1 packagename2 packagename3
*Update the Package Index
#sudo apt-get updateThe APT package index is essentially a database of available packages from the repositories defined in the /etc/apt/sources.list file.
*Upgrade the system
#sudo apt-get upgrade
*Read Debian APT User Manual
#sudo apt-get helpTags: apt get apt-get advanced packaging tool install remove upgrade update help ubuntu linux unix package-management
more
-
Port Numbers - Linux
PORTS NUMBERS : Just as the physical address (MAC address) and the logical address (IP address) helps to route the traffic to a particular machine on a network, it is the port that identifies which service on the machine this traffic is destined to.
List of ports : /etc/servicesA port on a specific computer is called a socket. It can be open, closed, listening or have a connection established.
###Important PORT NUMBERS to remember:20 - FTP - data transfer21 - FTP - control (command)22 - SSH23 - Telnet25 - SMTP37 - Time43 - WHOIS42 - WINS53 - DNS67 - BOOTp68 - DHCP69 - TFTP79 - FINGER80 - HTTP (WWW)88 - Kerberose101 - HOSTNAME110 - POP3111 - rpcbind119 - NNTP123 - NTP (Time)137 - NetBios (nmbd)139 - NetBios ( Samba)143 - IMAP/Dovecot161 - SNMP180 - RIS220 - IMAP3389 - LDAP443 - HTTPs500 - Internet Key Exchange (IKE), IPSec520 - RIP546 - DHCPV6 client547 - DHCPV6 server554 - rtsp(Real Time Stream Protocol, Audio/Video)631 - Printing (ipp)744 - Flexlm901 - SWAT953 - rndc993 - IMAPSecure995 - POPs999 - POP over SSL/TLS2049 - NFS2082 - CPANEL2083 - CPANEL Secure SSL/TLS2086 - CPANEL WHM2087 - CPANEL WHM Secure/SSL2095 - CPANEL Webmail2096 - CPANEL Webmail Secure/SSL2222 - Direct Admin Control Panel2401 - CVSP server3268 - AD Global Catalog3269 - AD Global Catalog over SSL3306 - MySQL Server3389 - Terminal services (rdp-remote desktop protocol)4643 - Virtusso Power Panel(6000 - X116063)8443 - Pleask Control Panel9999 - Urchin10000- Webmin Control Panel21018- Skype
TAG: port, portnumber, port-numbers, tcp, udp, network, service, services, linux, socket, communication, transmission, dataflow, rhce, ubuntu, unix, red hat, red-hat, redhat
more
-
How to install Webmin
WEBMINWebmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.
Install Webmin (Successfully tested/configured on Ubuntu server 10.04)
#sudo aptitude safe-upgrade
#sudo aptitude update
#sudo mkdir downloads
#cd downloads
#sudo wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=cdnetworks-us-1
or
#sudo wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=kent
#sudo dpkg -i webmin_1.510-2_all.deb
#sudo aptitude -f install=>>You can access the Ubuntu machine from a Windows machine via a web browser by typing the addresshttps://yourip:10000
or
https://core:10000 , here core is the name of my Ubuntu server.Tags: webmin web-based interface system administration admistrator configure linux server ubuntu red hat redhat rhel rhce unix
more
-
How to break root password !!!
How to break root password !!!Method 1:1) When you reach the grub screen press 'e' on linux.2) Go to line which contains the word 'kernel' press 'e'3) go to the end of that line and write 'linux single' or '1'4) then press 'esc' twice and press 'b' to reboot the system5) now wait for the prompt and then type 'passwd root'6) enter new passwd1) Boot the computer with linux installation CD2) Enter the linux rescue mode by entering the following command in boot screenboot:linux rescue3) When the sh prompt is reached, enter the following commands to change root password:#chroot /mnt/sysimage#passwdThe above step will prompt you to enter your new password
Tags: rhel rhel5 rhce rhct hack how to break root password=================================================== O************************O***********************O
more
Subscribe to:
Posts (Atom)
.
