Skip to content

Instantly share code, notes, and snippets.

@maoy
maoy / interfaces
Created June 17, 2013 21:03
network interfaces on agave021
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 135.207.223.61
netmask 255.255.255.0
network 135.207.223.0
@maoy
maoy / interfaces
Created June 12, 2013 16:09
network interfaces on agave011
# 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
@maoy
maoy / rules.v4
Last active December 18, 2015 10:10
iptables setup
# Generated by iptables-save v1.4.12 on Wed Jun 12 16:26:14 2013
*filter
:INPUT ACCEPT [282786:311755668]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [189653:22627850]
-A FORWARD -p tcp -d 172.31.254.101 --match multiport --dports 443,8774,8773,6080,5000,8776 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -p tcp -d 172.31.254.100 --dport 4040 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
-A INPUT -i br100 -p udp -m udp --dport 53 -j ACCEPT-A INPUT -i br100 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i br100 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i br100 -p tcp -m tcp --dport 67 -j ACCEPT
-A FORWARD -d 172.31.254.0/24 -o br100 -m state --state RELATED,ESTABLISHED -j ACCEPT

| asdf | adsf | | dfdf | ff |

@maoy
maoy / gist:4032989
Created November 7, 2012 17:05 — forked from retr0h/gist:2223264
Install MegaCLI
#!/usr/bin/env sh
### Download and install megaraidcli for Ubuntu 12.04;
FILE="megacli_8.04.07.orig.tar.gz"
LINK="http://hwraid.le-vert.net/ubuntu/sources/$FILE"
wget $LINK -O /tmp/$FILE
(
cd /tmp