Difference between revisions of "Cluster Kurrola"

From Radio Amteur Station OH5BZR - WIKI
Jump to: navigation, search
(IPV6)
(IPV6)
Line 71: Line 71:
 
  Sixxs How To[http://www.sixxs.net/wiki/Setting_Up_an_IPv6_home_network_with_Ubuntu]
 
  Sixxs How To[http://www.sixxs.net/wiki/Setting_Up_an_IPv6_home_network_with_Ubuntu]
 
  Ipv6 How to[http://tldp.org/HOWTO/html_single/Linux+IPv6-HOWTO/#SYSTEMCHECK-KERNEL]
 
  Ipv6 How to[http://tldp.org/HOWTO/html_single/Linux+IPv6-HOWTO/#SYSTEMCHECK-KERNEL]
 +
 +
 +
nat.sh
 +
 +
[
 +
echo -e "\n\nLoading simple rc.firewall-iptables version $FWVER..\n"
 +
DEPMOD=/sbin/depmod
 +
MODPROBE=/sbin/modprobe
 +
 +
EXTIF="ppp0"
 +
INTIF="eth0"
 +
#INTIF2="eth0"
 +
echo "  External Interface:  $EXTIF"
 +
echo "  Internal Interface:  $INTIF"
 +
 +
#======================================================================
 +
#== No editing beyond this line is required for initial MASQ testing ==
 +
echo -en "  loading modules: "
 +
echo "  - Verifying that all kernel modules are ok"
 +
$DEPMOD -a
 +
echo "----------------------------------------------------------------------"
 +
echo -en "ip_tables, "
 +
$MODPROBE ip_tables
 +
echo -en "nf_conntrack, "
 +
$MODPROBE nf_conntrack
 +
echo -en "nf_conntrack_ftp, "
 +
$MODPROBE nf_conntrack_ftp
 +
echo -en "nf_conntrack_irc, "
 +
$MODPROBE nf_conntrack_irc
 +
echo -en "iptable_nat, "
 +
$MODPROBE iptable_nat
 +
echo -en "nf_nat_ftp, "
 +
$MODPROBE nf_nat_ftp
 +
echo "----------------------------------------------------------------------"
 +
echo -e "  Done loading modules.\n"
 +
echo "  Enabling forwarding.."
 +
echo "1" > /proc/sys/net/ipv4/ip_forward
 +
echo "  Enabling DynamicAddr.."
 +
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
 +
echo "  Clearing any existing rules and setting default policy.."
 +
 +
iptables-restore <<-EOF
 +
*nat
 +
-A POSTROUTING -o "$EXTIF" -j MASQUERADE
 +
COMMIT
 +
*filter
 +
:INPUT ACCEPT [0:0]
 +
:FORWARD DROP [0:0]
 +
:OUTPUT ACCEPT [0:0]
 +
-A FORWARD -i "$EXTIF" -o "$INTIF" -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
 +
-A FORWARD -i "$INTIF" -o "$EXTIF" -j ACCEPT
 +
-A FORWARD -j LOG
 +
COMMIT
 +
EOF
 +
 +
echo -e "\nrc.firewall-iptables v$FWVER done.\n"
 +
 +
#IPV6
 +
 +
ip6tables -P INPUT ACCEPT
 +
ip6tables -P FORWARD ACCEPT
 +
ip6tables -P OUTPUT ACCEPT
 +
ip6tables -L
 +
 +
#EOF
 +
]
  
 
== Running Server ==
 
== Running Server ==

Revision as of 14:14, 11 October 2013

Connection:

Physical: 4G mobile network Saunanlahti\n Modem  : Huawei 398\n \n Protocol stack:\n

DC-HSPA\n ppp

   ipv4: rounting, bridge  Ubuntu kernel
         -shorewall, isc-dhcp., bind9
   ipv6: System Six IPV6 tunnel over IPV4 network
         -shorewall6, isc-dhcp, bind9, aiccu


Server mpi2:


ppp0: wvdialD, wvdial, aiccu br0: eth0 shoreline shoreline6 aiccu raddvd, wlan0 (hostapd)

80 / http, drupal 443 / https, drupal 81 / nominatim-osm-MTK MAPs 8082 / owncloud

/ bind9
/ dhcp
/ dhcp ipv6

3142 / apt-cacher-ng 8080 / calibre 8081 / internal drupal site 7000-7200 / mpi4you mpich3


Installation

Finish Language Install Keyboard

sudo apt-get install language-pack-gnome-fi language-pack-fi-base language-pack-gnome-fi-base voikko-fi firefox-locale-fi thunderbird-locale-fi
sudo dpkg-reconfigure console-data
sudo dpkg-reconfigure console-setup
sudo dpkg-reconfigure keyboard-configuration


MediaWiki

Running MediaWiki on Ubuntu [1]
PDF support [2]
Latex support sudo apt-get install ocml texlive and changes [3]

g++-4.7

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
sudo update-alternatives --config gcc


IPV6

Sixxs How To[4]
Ipv6 How to[5]


nat.sh

[ echo -e "\n\nLoading simple rc.firewall-iptables version $FWVER..\n" DEPMOD=/sbin/depmod MODPROBE=/sbin/modprobe

EXTIF="ppp0" INTIF="eth0"

  1. INTIF2="eth0"

echo " External Interface: $EXTIF" echo " Internal Interface: $INTIF"

  1. ======================================================================
  2. == No editing beyond this line is required for initial MASQ testing ==

echo -en " loading modules: " echo " - Verifying that all kernel modules are ok" $DEPMOD -a echo "----------------------------------------------------------------------" echo -en "ip_tables, " $MODPROBE ip_tables echo -en "nf_conntrack, " $MODPROBE nf_conntrack echo -en "nf_conntrack_ftp, " $MODPROBE nf_conntrack_ftp echo -en "nf_conntrack_irc, " $MODPROBE nf_conntrack_irc echo -en "iptable_nat, " $MODPROBE iptable_nat echo -en "nf_nat_ftp, " $MODPROBE nf_nat_ftp echo "----------------------------------------------------------------------" echo -e " Done loading modules.\n" echo " Enabling forwarding.." echo "1" > /proc/sys/net/ipv4/ip_forward echo " Enabling DynamicAddr.." echo "1" > /proc/sys/net/ipv4/ip_dynaddr echo " Clearing any existing rules and setting default policy.."

iptables-restore <<-EOF

  • nat

-A POSTROUTING -o "$EXTIF" -j MASQUERADE COMMIT

  • filter
INPUT ACCEPT [0:0]
FORWARD DROP [0:0]
OUTPUT ACCEPT [0:0]

-A FORWARD -i "$EXTIF" -o "$INTIF" -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT -A FORWARD -i "$INTIF" -o "$EXTIF" -j ACCEPT -A FORWARD -j LOG COMMIT EOF

echo -e "\nrc.firewall-iptables v$FWVER done.\n"

  1. IPV6

ip6tables -P INPUT ACCEPT ip6tables -P FORWARD ACCEPT ip6tables -P OUTPUT ACCEPT ip6tables -L

  1. EOF

]

Running Server

Starting MPI4YOU elmer

mpiexec -v -np <how many core> -host <hosts> -ckpointlib blcr -ckpoint-prefix <chekpoint files storage> -ckpoint-interval <chekponting interval seconds> /mpi<mpi4you version>/C/elmer_<elmer revision>/bin/ElmerSolver_mpi  
mpiexec -v -np 3 -host ugh -ckpointlib blcr -ckpoint-prefix /mpi3/chekpoint -ckpoint-interval 10 /mpi3/C2/elmer_6003/bin/ElmerSolver_mpi


Server start & stop

/etc/init.d/networking restart
/etc/init.d/snmpd restart
service bind9 restart
sudo service isc-dhcp-server start
/etc/init.d/apache2 restart