linux

Sed one-liners

Mirrored sed one-liners from http://www.student.northpark.edu/pemente/sed/sed1line.txt

This was too useful to let it fall off the internet should link expire! Great read/reference

Full gigabit speeds in linux and windows

Finally, I'm able to get fully gigabit speeds from my linux server to my workstation. I couldn't tell who was the bottle neck before so I tuned them both. Originally, no matter what I did I would cap out at 160 to 320mbps at any point using any TCP or UDP. Ping seemed to work so I know it wasn't a bus issue. Come to find out, a few sysctl and registry hacks got me to 871mbps! No jumbo frames either, as those don't really fix the problem.

In linux I have the following in my sysctl. Keep in mind that this is a Dual Xeon 2.0Ghz with 1GB ram and a intel gigabit on PCI-X.

sysctl.conf

VPN tunneling on a linux router

After battling VPN on linux for over a week, I have what I think is the best solution out there for those of you using linux firewalls as your primary home routers. For completeness sake, I'll post what I did to connect my VPNs as tunnels on my linux router instead of using pptp-config or clobbering my default gateway. While this isn't the easiest approach, it is most defiantly the easiest to use when you have more than one PC on the network and your VPN only allows for one login.

Easy NAT without scripting

I was once searching the internet for a NAT script to one of my machines to do my routing. Hopefully, I will be able to explain how to make a simple, fast, and scalable iptables rule set (and all without scripting it++); Iptables in linux does not have to be as complicated and obscure as many sites and people make it out to be. It's all really just a complex set of simple rules.

Syndicate content