OVH / Linux Two network cards (nic), two gateways. Gateway for one ip address. Two Gateways. VRACK IP Failover

eth0: 2.2.2.2 ( route like a normal ) eth1: 1.1.1.1 netmask 255.255.255.255 ( OVH ) # make this IP append to table Route1 ip rule add to 1.1.1.1/32 table Route1 ip rule add from 1.1.1.1/32 table Route1 # this IP push directly to eth1 ip route add 10.10.10.10 dev eth1 # and main think, put …

Continue reading ‘OVH / Linux Two network cards (nic), two gateways. Gateway for one ip address. Two Gateways. VRACK IP Failover’ »

IPTABLES cPanel script set outgoing IP as dedicated

iptables -t nat -A POSTROUTING -o eth0 -m owner –uid-owner *USERNAME* -j SNAT –to 198.51.100.10 Do I need to comment that? 😉   Oh, wait. Maybe some script to do it easier? #!/bin/bash for file in /var/cpanel/users/*; do         fname=$(basename $file)         ip=$(grep „IP=” $file | cut -d „=” -f 2)         hip=$(hostname -i)         …

Continue reading ‘IPTABLES cPanel script set outgoing IP as dedicated’ »

[POSTFIX] How to check if user exists in case of postfix proxy Exchange with Active Directory / LDAP

In case if postfix is Exchange proxy mail filter, much email going to spamassasin (grow up load), and then relay to Exchange ( made fake reply to non existing address ) so it’s good idea to check if recipient exists: This is in case of EFA – work nice. 1) Install postfix-ldap package 2) nano …

Continue reading ‘[POSTFIX] How to check if user exists in case of postfix proxy Exchange with Active Directory / LDAP’ »

UBIQUITY Unifi, Windows 2008R2 RADIUS + SSL Setup – Integration

1. Add valid certificate to MMC, Local computer, Personal, Certificates. Cert should be signed, valid and probably not wildcard! Intermediate cert shoud be placed in correct folders ( Trusted Root CA, etc. ) Remember to have imported SSL With private key. If it is without private key, do: Get cert serial number from itself, at …

Continue reading ‘UBIQUITY Unifi, Windows 2008R2 RADIUS + SSL Setup – Integration’ »

WINDOWS XP, IPv6 configuration. OVH sample. VSphere working.

// chaos begin 😉 ipv6 install // check index of interface ipv6 if // change default prefix ( WAN = Local Area Network by default ) netsh interface ipv6 set interface „WAN” siteprefixlength=54 // set ipv6 address ( 8 its interface index ) ipv6 -p adu 8/2001:41d0:b:110::1 // set default route netsh interface ipv6 add …

Continue reading ‘WINDOWS XP, IPv6 configuration. OVH sample. VSphere working.’ »