Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 8 and Version 9 of CcubeReftek


Ignore:
Timestamp:
19.09.2016 10:50:32 (14 months ago)
Author:
tracdaniel (IP: 141.89.111.92)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CcubeReftek

    v8 v9  
    3333}}} 
    3434 
     35The rules of iptables are lost after a reboot, here a script (iptables_reftek.sh): 
     36{{{ 
     37#!/bin/bash 
     38# 
     39# This script is to start the routing from Reftek130 ethernet over the C-Cube to 
     40# the rtpd at a remote computer. Started by /etc/networks/interfaces post 
     41# needs /etc/sysctl.conf  net.ipv4.ip_forward=1 
     42# in /usr/local/bin/ 
     43 
     44iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE 
     45iptables -A FORWARD -i eth0 -j ACCEPT 
     46}}} 
     47 
     48And start the script in /etc/network/currend_usb0 
     49 
     50{{{  
     51# UMTSMODE=1,2 or 3 - UMTS turned on! 
     52auto usb0 
     53iface usb0 inet dhcp 
     54        pre-up /usr/local/bin/umts_on.py 
     55        pre-up /usr/local/bin/connect_umts_manual.sh internet.t-d1.de 
     56        post-up service ddclient start 
     57        post-up /usr/local/bin/iptables_reftek.sh 
     58        pre-down service ddclient stop 
     59        post-down /usr/local/bin/disconnect_umts_manual.sh 
     60        post-down /usr/local/bin/umts_off.py 
     61}}} 
    3562 
    3663