close
Warning:
Can't synchronize with repository "keplertools" (/srv/svn/keplertools does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Oct 5, 2013, 2:13:21 PM (13 years ago)
- Author:
-
bau
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v13
|
v14
|
|
| 6 | 6 | = Firewall-Einstellungen in ''/etc/init.d/linuxmuster-base'' = |
| 7 | 7 | |
| 8 | | in der Funktion start_firewall nach : |
| | 8 | Für die LTSP_Server müssen in der Firewll Freigaben gemacht werden. Das passiert am Ende der Datei im Abschnitt start und restart: |
| 9 | 9 | |
| 10 | 10 | {{{ |
| 11 | | # accept ipcop |
| 12 | | iptables -A IN-$IFACE -s $ipcopip/32 -j ACCEPT |
| 13 | | }}} |
| 14 | | |
| 15 | | einfügen: |
| 16 | | |
| 17 | | {{{ |
| 18 | | # accept ipcop |
| 19 | | iptables -A IN-$IFACE -s $ipcopip/32 -j ACCEPT |
| 20 | | |
| | 11 | workaround(){ |
| 21 | 12 | # accept proxy |
| 22 | | iptables -A IN-$IFACE -s 10.32.1.251/32 -j ACCEPT |
| | 13 | iptables -A IN-eth1-ALLOWED -s 10.32.1.251/32 -j ACCEPT |
| 23 | 14 | |
| 24 | 15 | # accept ProxMoxPaedml |
| 25 | | iptables -A IN-$IFACE -s 10.32.1.2/32 -j ACCEPT |
| | 16 | iptables -A IN-eth1-ALLOWED -s 10.32.1.2/32 -j ACCEPT |
| 26 | 17 | |
| 27 | 18 | # accept LTSP-SERVER-KVM (proxmoxltsp1-proxmoxltsp7) |
| 28 | | iptables -A IN-$IFACE -s 10.32.2.101/32 -j ACCEPT |
| 29 | | iptables -A IN-$IFACE -s 10.32.2.102/32 -j ACCEPT |
| 30 | | iptables -A IN-$IFACE -s 10.32.2.103/32 -j ACCEPT |
| 31 | | iptables -A IN-$IFACE -s 10.32.2.104/32 -j ACCEPT |
| 32 | | iptables -A IN-$IFACE -s 10.32.2.105/32 -j ACCEPT |
| 33 | | iptables -A IN-$IFACE -s 10.32.2.106/32 -j ACCEPT |
| 34 | | iptables -A IN-$IFACE -s 10.32.2.107/32 -j ACCEPT |
| | 19 | iptables -A IN-eth1-ALLOWED -s 10.32.2.101/32 -j ACCEPT |
| | 20 | iptables -A IN-eth1-ALLOWED -s 10.32.2.102/32 -j ACCEPT |
| | 21 | iptables -A IN-eth1-ALLOWED -s 10.32.2.103/32 -j ACCEPT |
| | 22 | iptables -A IN-eth1-ALLOWED -s 10.32.2.104/32 -j ACCEPT |
| | 23 | iptables -A IN-eth1-ALLOWED -s 10.32.2.105/32 -j ACCEPT |
| | 24 | iptables -A IN-eth1-ALLOWED -s 10.32.2.106/32 -j ACCEPT |
| | 25 | iptables -A IN-eth1-ALLOWED -s 10.32.2.107/32 -j ACCEPT |
| 35 | 26 | |
| 36 | 27 | # accept LTSP-SERVER (ltsp1-ltsp7) |
| 37 | | iptables -A IN-$IFACE -s 10.32.2.1/32 -j ACCEPT |
| 38 | | iptables -A IN-$IFACE -s 10.32.2.2/32 -j ACCEPT |
| 39 | | iptables -A IN-$IFACE -s 10.32.2.3/32 -j ACCEPT |
| 40 | | iptables -A IN-$IFACE -s 10.32.2.4/32 -j ACCEPT |
| 41 | | iptables -A IN-$IFACE -s 10.32.2.5/32 -j ACCEPT |
| 42 | | iptables -A IN-$IFACE -s 10.32.2.6/32 -j ACCEPT |
| 43 | | iptables -A IN-$IFACE -s 10.32.2.7/32 -j ACCEPT |
| | 28 | iptables -A IN-eth1-ALLOWED -s 10.32.2.1/32 -j ACCEPT |
| | 29 | iptables -A IN-eth1-ALLOWED -s 10.32.2.2/32 -j ACCEPT |
| | 30 | iptables -A IN-eth1-ALLOWED -s 10.32.2.3/32 -j ACCEPT |
| | 31 | iptables -A IN-eth1-ALLOWED -s 10.32.2.4/32 -j ACCEPT |
| | 32 | iptables -A IN-eth1-ALLOWED -s 10.32.2.5/32 -j ACCEPT |
| | 33 | iptables -A IN-eth1-ALLOWED -s 10.32.2.6/32 -j ACCEPT |
| | 34 | iptables -A IN-eth1-ALLOWED -s 10.32.2.7/32 -j ACCEPT |
| 44 | 35 | |
| 45 | 36 | # accept Boot-Sticks (1-4) |
| 46 | | iptables -A IN-$IFACE -s 10.32.2.201/32 -j ACCEPT |
| 47 | | iptables -A IN-$IFACE -s 10.32.2.202/32 -j ACCEPT |
| 48 | | iptables -A IN-$IFACE -s 10.32.2.203/32 -j ACCEPT |
| 49 | | iptables -A IN-$IFACE -s 10.32.2.204/32 -j ACCEPT |
| | 37 | iptables -A IN-eth1-ALLOWED -s 10.32.2.201/32 -j ACCEPT |
| | 38 | iptables -A IN-eth1-ALLOWED -s 10.32.2.202/32 -j ACCEPT |
| | 39 | iptables -A IN-eth1-ALLOWED -s 10.32.2.203/32 -j ACCEPT |
| | 40 | iptables -A IN-eth1-ALLOWED -s 10.32.2.204/32 -j ACCEPT |
| | 41 | } |
| | 42 | |
| | 43 | |
| | 44 | RC=0 |
| | 45 | |
| | 46 | case "$1" in |
| | 47 | |
| | 48 | start) |
| | 49 | start_firewall ; RC="$?" |
| | 50 | workaround ; |
| | 51 | ;; |
| | 52 | |
| | 53 | stop) |
| | 54 | stop_firewall ; RC="$?" |
| | 55 | ;; |
| | 56 | |
| | 57 | restart) |
| | 58 | stop_firewall ; RC="$?" |
| | 59 | if [ "$RC" = "0" ]; then |
| | 60 | start_firewall ; RC="$?" |
| | 61 | fi |
| | 62 | workaround ; |
| | 63 | ;; |
| | 64 | |
| | 65 | reload) |
| | 66 | reload_firewall ; RC="$?" |
| | 67 | workaround ; |
| | 68 | |
| | 69 | ;; |
| 50 | 70 | |
| 51 | 71 | }}} |
| 52 | | |
| 53 | 72 | |
| 54 | 73 | |