Tag Archive: UNIX

Feb 20 2007

Unix Firewall Rules

*filter :INPUT ACCEPT :FORWARD ACCEPT :OUTPUT ACCEPT :RH-Firewall-1-INPUT – -A INPUT -j RH-Firewall-1-INPUT -A FORWARD -j RH-Firewall-1-INPUT -A RH-Firewall-1-INPUT -i lo -j ACCEPT -A RH-Firewall-1-INPUT -p icmp –icmp-type any -j ACCEPT -A RH-Firewall-1-INPUT -p 50 -j ACCEPT -A RH-Firewall-1-INPUT -p 51 -j ACCEPT -A RH-Firewall-1-INPUT -p udp –dport 5353 -d 224.0.0.251 -j ACCEPT -A RH-Firewall-1-INPUT -p udp -m udp –dport 631 -j ACCEPT -A RH-Firewall-1-INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 8080 -j ACCEPT -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 8887 -j ACCEPT -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 3306 -j ACCEPT -A RH-Firewall-1-INPUT -j REJECT –reject-with icmp-host-prohibited COMMIT Once you add the rules in, you need to restart the firewall by doing the following command: # service iptables restart accept, dport, firewall, iptables, linux, mysql, ports, red hat, reject, rules, server, state, system administration, tcp, unix

Permanent link to this article: http://www.armenianeagle.com/2007/02/20/unix-firewall-rules/

http://pagead2.googlesyndication.com/pagead/show_ads.js

Nov 28 2006

Microsoft to Promote Linux

Microsoft has spent the last decade trying to kill Linux from the market because of they were afraid of the competition. While he has since dialed back the rhetoric, the subtext remains in nearly all Microsoft discussions of Linux: Use it, and you run the risk that Microsoft will sue you.”

Permanent link to this article: http://www.armenianeagle.com/2006/11/28/microsoft-to-promote-linux/

http://pagead2.googlesyndication.com/pagead/show_ads.js

Nov 21 2006

Installing Qmail on RedHat

However, for this lab just create a new file called IDS and paste the following into it: /usr/sbin/groupadd nofiles /usr/sbin/useradd -g nofiles -d /var/qmail/alias alias /usr/sbin/useradd -g nofiles -d /var/qmail qmaild /usr/sbin/useradd -g nofiles -d /var/qmail qmaill /usr/sbin/useradd -g nofiles -d /var/qmail qmailp /usr/sbin/groupadd qmail /usr/sbin/useradd -g qmail -d /var/qmail qmailq /usr/sbin/useradd -g qmail -d /var/qmail qmailr /usr/sbin/useradd -g qmail -d /var/qmail qmails Now we need to run the script.

Permanent link to this article: http://www.armenianeagle.com/2006/11/21/installing-qmail-on-redhat/

http://pagead2.googlesyndication.com/pagead/show_ads.js

Permanent link to this article: http://www.armenianeagle.com/2006/11/20/changing-root-password-on-mac-os-x/

Sep 18 2006

Unix “Diff” Command

Needing to compare differences in the files, Zach told me about the “Diff” command in Unix which allows you to compare two different files and it will inform you of the changes.

Permanent link to this article: http://www.armenianeagle.com/2006/09/18/unix-diff-command/

Jul 01 2006

Unix Automatic Scripts

awk ‘/Synergy/{print $1}’` kill -9 $get_pid cd /Applications/Synergy /Applications/Synergy/synergys –config synergy.conf UPDATED: Found some bugs in the code and I changed it to the current shown above apple, awk, command line, grep, kill, kill processes, ps, scripting, scripts, synergy, terminal, unix

Permanent link to this article: http://www.armenianeagle.com/2006/07/01/unix-automatic-scripts/