Ramblings from MostlyChris

Tech stuff and a bit more

Browsing Posts in Linux

Logging from a firewall to linux is fairly simple. First, enable logging on the firewall with something along these lines (your options may vary): (config)# logging on (config)# logging standby (config)# logging timestamp (config)# logging trap notifications (config)# logging facility 19 (config)# logging host inside <Your server IP address> Notice that the firewall uses facility [...]

I recently had to create a number of home directories from the user accounts in the /etc/passwd file because Webmin didn't create them when the user was created. Don't ask me why. Webmin is a mystery and only does things it feels like doing at the time it does them. But I digress.. The first [...]

If you run into semaphore issues…. First, determine the number of semaphores in use. ipcs | wc -l Then determine the current settings in the kernel for the number of semaphores. cat /proc/sys/kernel/sem Look at the 4th field. It shows the maximum number of shared memory segments for the entire system. If your number of [...]

If you would like to verify that the key and the certificate match you need to compare the modulus in both of the key file and the certificate file. You can check for differences in the modulus rather easily by sending the output of the comparison command to 'uniq'. If anything shows up, the numbers [...]

SSH Tunnel

No comments

You can access ports on a remote server and map them to a port on your local computer with an SSH tunnel. I do this with the command: ssh -N -L localport:127.0.0.1:remote_port user@remote_host