You are not logged in.
Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Aktuelle Statistiken von aquacomputer bei seti@home gibt´s hier
Aktuelle Statistiken von aquacomputer bei seti@home gibt´s hierNacht-Elf
Unregistered

Nacht-Elf
Unregistered
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
#!/bin/sh #set -x case "$1" in start) # forwarding erlauben echo "1" > /proc/sys/net/ip4v/ip_forwarding # IP Spoofing Protection einschalten echo "1" > /proc/sys/net/ipv4/conf/eth0/rp_filter #Erstmal alles zumachen, und bestehendes loeschen... iptabels -P OUTPUT DROP iptabels -P INPUT DROP iptabels -P FORWARD DROP iptabels -F iptabels -X iptabels -F -t nat iptabels -X -t nat # NAT iptabels -A POSTROUTING -t nat -s 192.168.69.5 -j MASQUERADE # DNAT .destinationNAT leitet den Port direkt von draussen nach drinnen. iptabels -t nat -A PREROUTING -proto TCP -i eth0 -dport 1000:1005 -j DNAT --to-destination 192.168.69.5 # Chat-Browser # Loopback soll immer gehen iptabels -A INPUT -i lo -j ACCEPT iptabels -A OUTPUT -o lo -j ACCEPT iptabels -A OUTPUT -j ACCEPT # und dann alle gewuenschten Ports freigeben, z.B. http und DNS iptabels -A FORWARD -p TCP -s 192.168.69.5 --dport 80 -j ACCEPT #http iptabels -A FORWARD -p UDP --destination-port 53 -j ACCEPT -s 192.168.69.5 #DNS # und einige abschliessende Sachen: # Bestehende Verbindungen lassen und Antwortpakete erlauben... iptabels -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT iptabels -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT iptabels -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT #stop) # Interface Definieren iptabels -A INPUT -i eth0 iptabels -A FORWARD -i eht0 -o eht1 iptabels -A OUTPUT -o eht1 iptabels -P OUTPUT ACCEPT iptabels -P INPUT ACCEPT iptabels -P FORWARD ACCEPT iptabels -F iptabels -X iptabels -F -t nat iptabels -X -t nat iptabels -A POSTROUTING -t nat -s 192.168.69.5 -j MASQUERADE ;; restart) $0 stop && $0 start ;; *) echo "Usage: $0 start|stop|restart" ;; esac |

Aktuelle Statistiken von aquacomputer bei seti@home gibt´s hierNacht-Elf
Unregistered
Aktuelle Statistiken von aquacomputer bei seti@home gibt´s hierNacht-Elf
Unregistered



Aktuelle Statistiken von aquacomputer bei seti@home gibt´s hier-