PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...
If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.
"Untitled" by Anonymous [Shell Script]Actions: |
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 |
#!/bin/bash # Cadu's firewall for Cavaguti # 10/03/2010 # Configuration #extifs="ext1 ext2" extif="ext1" intif="internal" # Load CaduGW . /etc/cadu/cadugw.sh banner Cavaguti firewall_init allow_loopback # basic stuff , SSH/ICMP/STATEFUL open_input_basic $extif open_input_basic $intif # allow proxy open_input_port_tcp $intif 3128 "Squid" open_input_port_tcp $intif 80 "HTTP" # allow dns request/reply allow_dns_internal $intif allow_dns_external $extif # forward/nat permission system #portgroup_create "CPD" #portgroup_addport_tcp 80 "CPD" #portgroup_addmac "00:11:22:33:44:55" "CPD" macaddrfullfw_addmac "00:11:22:33:44:55" open_forward_internal $intif open_forward_external $extif # portforwarding from $extif redirect_to_internal_host $extif 3389 192.168.0.1 3389 "Servidor Itaguai Terminal Service" redirect_to_internal_host $extif 5900 192.168.0.1 5900 "Servidor Itaguai VNC" redirect_to_internal_host $extif 5901 192.168.0.2 5900 "Servidor ?? VNC" redirect_to_internal_host $extif 5902 192.168.0.3 5900 "Servidor ?? VNC" redirect_to_internal_host $extif 5903 192.168.0.4 5900 "Servidor ?? VNC" # Enable NAT nat_enable $extif # Is everything okay? firewall_check_fail |