Mahlzeit,
Ich hab hier eine FreeBSD 5.2-CURRENT box, die sich mit pppoe ins internet einwahlt und nat macht. Ist gerade neu cvsub'ed & make world..
Klappt soweit, nur beim neu-booten startet natd nicht. Ich vermute weil ppp noch nicht den tun0 device aufgebaut hat und so "/sbin/natd -n tun0" fehlschlaegt. Also habe ich in /use/rc.d/natd ne REQUIRE zeile "ppp-user" eingefuegt (nach: "man rcorder") - hilft leider nicht.
Lustig ist: wenn ich nach dem booten "/etc/netstart" aufrufe ist alles so wie ich will - die config sind also alle okay.
Es kann sein dass ppp hier etwas laenger braucht um sich einzuwaehlen - ist ne wireless verbindung.
Configs:
---schnip--- /etc/rc.conf ---:
gateway_enable="YES"
firewall_enable="yes"
firewall_type="/etc/fw.box"
natd_enable="YES"
natd_interface="tun0"
natd_program="/sbin/natd"
# User ppp configuration.
ppp_enable="YES" # Start user-ppp (or NO).
ppp_mode="dedicated" # Choice of "auto", "ddial", "direct" or "dedicated".
ppp_nat="NO" # Use PPP's internal network address translation or NO.
ppp_profile="default" # Which profile to use from /etc/ppp/ppp.conf.
ppp_user="root" # Which user to run ppp as
---- schnip -- ipfw (/etc/fw.box) ---
add 100 allow ip from any to any via lo0
add 1000 divert natd ip from any to any via tun0
add 2000 allow ip from any to any
Bin dankbar fuer jede idee ..
Gruesse,
martin
Ich hab hier eine FreeBSD 5.2-CURRENT box, die sich mit pppoe ins internet einwahlt und nat macht. Ist gerade neu cvsub'ed & make world..
Klappt soweit, nur beim neu-booten startet natd nicht. Ich vermute weil ppp noch nicht den tun0 device aufgebaut hat und so "/sbin/natd -n tun0" fehlschlaegt. Also habe ich in /use/rc.d/natd ne REQUIRE zeile "ppp-user" eingefuegt (nach: "man rcorder") - hilft leider nicht.
Lustig ist: wenn ich nach dem booten "/etc/netstart" aufrufe ist alles so wie ich will - die config sind also alle okay.
Es kann sein dass ppp hier etwas laenger braucht um sich einzuwaehlen - ist ne wireless verbindung.
Configs:
---schnip--- /etc/rc.conf ---:
gateway_enable="YES"
firewall_enable="yes"
firewall_type="/etc/fw.box"
natd_enable="YES"
natd_interface="tun0"
natd_program="/sbin/natd"
# User ppp configuration.
ppp_enable="YES" # Start user-ppp (or NO).
ppp_mode="dedicated" # Choice of "auto", "ddial", "direct" or "dedicated".
ppp_nat="NO" # Use PPP's internal network address translation or NO.
ppp_profile="default" # Which profile to use from /etc/ppp/ppp.conf.
ppp_user="root" # Which user to run ppp as
---- schnip -- ipfw (/etc/fw.box) ---
add 100 allow ip from any to any via lo0
add 1000 divert natd ip from any to any via tun0
add 2000 allow ip from any to any
Bin dankbar fuer jede idee ..
Gruesse,
martin