daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Mar 11th, 2015 173 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ###########################################
  2. #         /etc/network/interfaces         #
  3. ###########################################
  4. auto lo
  5. iface lo inet loopback
  6.  
  7. auto eth1 eth2
  8.  
  9. # eth1 = inside interface
  10. iface eth1 inet static
  11.         address {My Internal Static IP}
  12.         netmask {My Internal Subnet Mask}
  13.         broadcast {My Internal Broadcast}
  14.         network {My Internal Network ID}
  15.         post-up iptables-restore < /etc/iptables.up.rules
  16.  
  17. # eth2 = outside interface
  18. iface eth2 inet dhcp
  19.  
  20. ###########################################
  21. #           /etc/dhcp/dhcpd.conf          #
  22. ###########################################
  23.  
  24. authoritative;
  25.  
  26. subnet {My preferred subnet} netmask {Subnet Mask Dotted Decimal} {
  27.         range {DHCP Range of addresses};
  28.         option subnet-mask {Network Mask};
  29.         option domain-name "{Domain Name}";
  30.         option domain-name-servers 8.8.8.8, 8.8.4.4;
  31.         option broadcast-address {Network Broadcast Address};
  32.         option routers {GW IP Address};
  33.  
  34.         #Static Reservations
  35.         group{
  36.  
  37.         host ws-1 {
  38.                 hardware ethernet {MAC Address};
  39.                 fixed-address {Reserved IP Address};
  40.                 }
  41.         } # end Group
  42. }
  43.  
  44. ###########################################
  45. #       /proc/sys/net/ipv4/ip_forward     #
  46. ###########################################
  47. 1
  48.  
  49. ###########################################
  50. #             /etc/sysctl.conf            #
  51. ###########################################
  52. # Uncomment the next line to enable packet forwarding for IPv4
  53. net.ipv4.ip_forward=1
  54.  
  55. ###########################################
  56. #             Traffic Filtering           #
  57. ###########################################
  58. Install iptables and configure to allow all traffic
  59. Update rules to filter nasty stuff
  60.  
  61. ###########################################
  62. #             Content Filtering           #
  63. ###########################################
  64. Install squid/dansguardian and configure as needed
RAW Paste Data
Top