Proxy

1184 palavras 5 páginas
configuração serevidor passo a passo: vim /etc/apt/sources.list deb http://ftp.de.debian.org/debian sid main

terminal root cd /etc/network vim interfaces

conteudo> interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface auto lo iface lo inet loopback

# The primary network interface allow-hotplug eth0 iface eth0 inet dhcp

# The secundary netwoek interface auto eth1 iface eth1 inet static address 10.4.0.1 netmask 255.255.255.0 broadcast 10.4.0.255
#gateway

apt-get install dhcp3-server cd /etc cd default vim dhcp3-server

conteudo> dhcp3-server
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"
~

cd /etc/dhcp3-server vim dhcpd.conf

conteudo> dhcpd.conf

authoritative;
# A slightly different configuration for an internal subnet. subnet 10.4.0.0 netmask 255.255.255.0 { range 10.4.0.100 10.4.0.200; option domain-name-servers 10.4.0.1,200.165.132.155,200.149.55.140;
# option domain-name "internal.example.org"; option routers 10.4.0.1; option broadcast-address 10.4.0.255; default-lease-time 600; max-lease-time 7200;
}

/etc/init.d/dhcp3-server restart

apt-get install bind9

touch /etc/init.d/iptables.conf

chmod 755 /etc/init.d/iptables.conf vim /etc/init.d/iptables.conf

conteudo> /etc/init.d/iptables.conf
#!/bin/bash
#
#/etc/init.d/iptables.conf
#
#comando limpa e atualiza os modulos
#
iptables -F iptables -t nat -F iptables -t mangle -F modprobe iptable_nat
#
#proxy-eth1 porta da intra net
#
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT

Relacionados

  • Proxy
    691 palavras | 3 páginas
  • Proxy
    670 palavras | 3 páginas
  • PROXY
    925 palavras | 4 páginas
  • Proxy
    594 palavras | 3 páginas
  • Proxy
    309 palavras | 2 páginas
  • Proxy
    298 palavras | 2 páginas
  • proxy
    386 palavras | 2 páginas
  • proxy
    1453 palavras | 6 páginas
  • Proxy
    1492 palavras | 6 páginas
  • proxy
    848 palavras | 4 páginas