Distroto e Fedora 4 s iadro 2.6.14-1.1656_FC4. Do sega sum
napravil slednite neshta:
iptables -P FORWARD ACCEPT
iptables -t nat -F
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j
MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
na eth0 sa mi nastroikite na dostavchika, na eth1
ip192.168.0.1, mask 255.255.255.0
klientskata mashina e na W$ s ip 192.168.0.2, mask
255.255.255.0 GW 192.18.0.1
/etc/sysctl.conf izglezhda taka:
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See
sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of
the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the
core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
v /etc/resolv.conf
nameserver "ip-to na DNS1 na dostavchika"
nameserver "ip-to na DNS2 na dostavchika"
Klientskata mashina ima PING kum ip-to na eth0; eth1; DNS na
dostavchika na net.
Problema e sledniia pri opit da se otvori dir.bg naprimer
pishe, che ne mozhe da bude otkrit hosta. Pri startirane chrez
http://"ip-to na dir.bg" vsichko e ok.
|