linux-l: pppd, masq und keine bilder

Falk Kuehnel cogitatio at t-online.de
Sa Feb 26 23:04:21 CET 2000


Hi Jan!

> > >Wenn dem so ist, dann nimm Dir mal eine URI von einem Bild und setzt' 
> "wget"
> > >darauf an. Wenn er es erfolgreich bekommt, dann ist das Problem bei Deinem
> > >Browser...
>
>Hmmm. Kannst Du mal die Liste der Befehle schicken, mit denen Du das
>Masquerading aufbaust/konfigurierst?

Here it is ;-)

#!/bin/sh
#
# rc.firewall - Initial SIMPLE IP Masquerade
#
# Load all required IP MASQ Modules
# Needed to initially load modules
#
/sbin/depmod -a
# Supports the propper masquerading of FTP
#
/sbin/modprobe ip_masq_ftp

# CRITICAL: Enable IP forwarding since it is disabled by default
#
echo "1" > /proc/sys/net/ipv4/ip_forward
# Dynamic IP-Adress
#
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
# MASQ Timeouts
#
# 2 hours timeout for TCP session timeouts
# 10 seconds timeout for traffic after the TCP/IP "FIN" packet is received
# 160 sec for UDP traffic
/sbin/ipchains -M -S 7200 10 160
# Enable simple IP forwarding and Masquerading
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.0.0/24 -j MASQ



Mehr Informationen über die Mailingliste linux-l