Difference between revisions of "Main Page"

From Secure Computing Wiki
Jump to: navigation, search
(Undo revision 1701 by Ecrist (talk))
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
Please note, I know my organization here sucksI'll be working on it over the weekend to make it a little nicer.  If you have advice, send me an email to ecrist @ secure-computing.net.
+
=== Welcome! ===
 +
Welcome to the Secure Computing Networks wikiOur goal is to produce a resource for Unix, Mac, and Windows System Administrators with information on configuration, trouble-shooting, and utilities for easier use and management of their systems and networks.
  
=== Wiki Stuff ===
+
I will be attending BSDCan this year!  If you'd like to meet up, drop me an [mailto:ecrist@secure-computing.net email].
* [[Extra Edit Buttons]]
+
  
=== Windows (Bleh) Notes ===
+
=== Background ===
* Windows XP WPA2 Support [[WinXP WPA2]]
+
The SCN Wiki got started as a personal project of mine, to store all the various configuration and trouble-shooting data I acquire in my job as a FreeBSD Administrator, and as an ad-hoc developer.  Over time, I started doing more complete write-ups for things such as [[OpenVPN]] and [[OpenLDAP]].  Today, I get a modest 4,000 hits per day to these complete articles.
  
=== Mail Server Stuff ===
+
== Popular Articles ==
First off, the learning curve on postfix blows donkey balls.  Secondly, I've been using sendmail for way too long and don't really WANT to use postfix.  However, I admit that there are quite a few great advantages to the postfix MTA, such as Virtual Domains and the user interface.
+
# [[OpenVPN]]
 
+
# [[OpenVPN/Routing]]
==== SpamAssassin ====
+
# [[mtree]]
* [http://sourceforge.net/projects/saq Cool quarantine for Postfix/SA]
+
# [[OpenLDAP]]
 
+
==== Postfix ====
+
[http://www.freesoftwaremagazine.com/articles/secure_email_servers_from_scratch_with_freebsd_6_part_2 http://www.freesoftwaremagazine.com/articles/secure_email_servers_from_scratch_with_freebsd_6_part_2]
+
 
+
[[Postfix How-To]]
+
 
+
==== vMail.Admin ====
+
Link sudo to /usr/bin/sudo
+
<pre># ln -s /usr/local/bin/sudo /usr/bin/sudo</pre>
+
 
+
== How to clear the queue ==
+
From time to time your mail queue may get filled up. This may be due to network problems or misconfiguration. For instance, if you botch (typo) the relayhost parameter, the mail will be undeliverable.
+
 
+
The first thing to do is fix the problem, meaning get the network back online, or fix the configuration. Issuing this command will tell postfix to try and deliver the mail from the queue.
+
 
+
  postfix flush
+
 
+
However if you discover (using the ''mailq'' command) that the deferred mail is useless anyway, it may be desirable to just purge it from the queue without delivering, like so...
+
 
+
  postsuper -d ALL deferred
+
 
+
Finally, specific messages can be removed based on their message ID, which is the first thing shown for each message shown in the ''mailq'' output.
+
 
+
  postsuper -d 0C0FF240F2
+
 
+
=== Firefox ===
+
* No Scroll Tabs: goto about:config, set browser.tabs.tabMinWidth=1
+
* Close on Tab: goto about:config, set browser.tabs.closeButtons=1
+
 
+
=== MySQL Stuff ===
+
==== Links ====
+
* [http://www.howtogeek.com/howto/programming/mysql-give-root-user-logon-permission-from-any-host/ http://www.howtogeek.com/howto/programming/mysql-give-root-user-logon-permission-from-any-host/]
+
 
+
== Perform DUMP over SSH tunnel ==
+
* Boot FreeBSD  cd, set up partitions correctly
+
* boot FreeSBIE
+
** login as root, no password
+
<pre>
+
killall dhclient
+
ifconfig <interface> inet <ipaddress>/<netmask>
+
route add default <default router>
+
umount /mnt
+
newfs -U /dev/ad0s1a
+
mount /dev/ad0s1a /mnt/
+
vim /etc/ssh/sshd_config, PermitRootLogin yes
+
passwd, set root password
+
/etc/rc.d/sshd start
+
</pre>
+
 
+
*login to source machine for dump
+
<pre>
+
# edit /etc/rc.conf and set up hostname and IP info for new machine
+
dump -0aLf - / | ssh <ipaddress> "cd /mnt/ && cat | restore -rf -"
+
# revert /etc/rc.conf
+
</pre>
+
 
+
==Command Line Foo==
+
*perform grep to highlight only certain text, but display all:
+
<pre>grep -e ".*<regex>.*" -e '$'</pre>
+
 
+
*perform grep on output from other commands like tail the use line buffering so there's no delay in post:
+
<pre>grep -e "regex" --line-buffered</pre>
+

Latest revision as of 12:33, 27 November 2010

Welcome!

Welcome to the Secure Computing Networks wiki. Our goal is to produce a resource for Unix, Mac, and Windows System Administrators with information on configuration, trouble-shooting, and utilities for easier use and management of their systems and networks.

I will be attending BSDCan this year! If you'd like to meet up, drop me an email.

Background

The SCN Wiki got started as a personal project of mine, to store all the various configuration and trouble-shooting data I acquire in my job as a FreeBSD Administrator, and as an ad-hoc developer. Over time, I started doing more complete write-ups for things such as OpenVPN and OpenLDAP. Today, I get a modest 4,000 hits per day to these complete articles.

Popular Articles

  1. OpenVPN
  2. OpenVPN/Routing
  3. mtree
  4. OpenLDAP