8.25.2012

good lucky juan

Felicitaciones y suerte hermano en tu ponencia, pasa las fotos que Sao Paolo debe ser chevere,  no olvides de llamar a los papas.

8.16.2012

xen x 64 conf file


name = "win2k8"
uuid = "7a933b6d-6fc4-10ab-5692-f1e684258d36"
maxmem = 512
memory = 512
vcpus = 1
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "dc"
pae = 1
acpi = 1
apic = 1
localtime = 1
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib64/xen/bin/qemu-dm"
sdl = 0
vnc = 5909
vncunused = 1
disk = [ "phy:/dev/vg_virtuals/lv_win2k8,hda,w", "file:/soporte/w2k8.iso,hdc:cdrom,r" ]
vif = [ "type=ioemu,mac=00:16:3e:52:86:07,bridge=xenbr0" ]

8.09.2012

very basic linux dns

Inicio este breve post agradeciendo infinitamente a Joel Barrios, espero pronto poder tener tu visita a Peru. Bien he utilizado bind-9.7.0-5.P2.el6.i686 sobre RHEL 6.

[root@dns ~]# cat /etc/named.conf
acl lan { 192.168.1.0/24; };
options {
        directory "/var/named";
        recursion no;
};
zone "e-connecting.unas" IN {
        file "e-connecting.unas.db";
        type master;
        allow-query { localhost; lan; };
};

zone "1.168.192.in-addr.arpa" IN {
        file "1.168.192.in-addr.arpa.db";
        type master;
        allow-query { localhost; lan; };
};


[root@dns ~]# cat /var/named/e-connecting.unas.db
$ORIGIN e-connecting.unas.
$TTL 3600
@       SOA     dns.e-connecting.unas.              admin.e-connecting.unas. (
                                2009121801      ; Serial
                                30m             ; Refresh
                                3m              ; Retry
                                4w              ; Expiry
                                30m )           ; Negative cache TTL
        NS      dns
        NS      vcenter
dns       A       192.168.1.2
vcenter         A       192.168.1.10
esx2    A       192.168.1.233

[root@dns ~]# cat /var/named/1.168.192.in-addr.arpa.db
$ORIGIN 1.168.192.in-addr.arpa.
$TTL 3600

@       SOA     dns.e-connecting.unas.              admin.e-connecting.unas. (
                                2009121802      ; Serial
                                30m             ; Refresh
                                3m              ; Retry
                                4w              ; Expiry
                                30m )           ; Negative cache TTL

@       IN      NS              dns.e-connecting.unas.
10      IN      PTR             vcenter.e-connecting.unas.
233     IN      PTR             esx2.e-connecting.unas.




[root@dns ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
HWADDR="00:1D:60:FE:94:78"
NM_CONTROLLED="no"
ONBOOT="yes"
IPADDR=192.168.1.2
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.2




basic linux firewall


iptables -F
iptables –P INPUT DROP
iptables –A INPUT –I lo –j ACCEPT
iptables –A INPUT –m state –state ESTABLISHED,RELATED –j ACCEPT
iptables –A INPUT –m state –state NEW –p tcp –dport 22 –j ACCEPT
iptables –A INPUT –m state –state NEW –p udp –dport 53 –j ACCEPT
iptables –A INPUT –m state –state NEW –j DROP