Re[2]: constant tun interface
Добрый день, Sergey! SZ> On Tue, Jun 29, 2004 at 09:02:23AM +0400, SZ> Lev Klimin probably wrote: >> Hello! >> >> I have little trouble. I have 4.10-release with ppp ant ipnat. On >> startup ipnat reload it's rules with interface tun0 in statments which >> is ppp's device. But before running ppp, there is no tun device in >> system >> [8:48:04][~]:garbage# ifconfig >> fxp0: flags=8843 mtu 1500 >> inet 195.161.208.151 netmask 0xffc0 broadcast 195.161.208.191 >> ether 00:a0:c9:4b:09:29 >> media: Ethernet 10baseT/UTP >> status: active >> fxp1: flags=8843 mtu 1500 >> inet 172.16.0.9 netmask 0xfff8 broadcast 172.16.0.15 >> ether 00:a0:c9:b6:59:a1 >> media: Ethernet autoselect (100baseTX ) >> status: active >> lo0: flags=8049 mtu 16384 >> inet 127.0.0.1 netmask 0xff00 >> ppp0: flags=8010 mtu 1500 >> faith0: flags=8002 mtu 1500 >> [8:48:09][~]:garbage# >> >> Because of lack of tun interface, further ipnat rules don't work. I >> can reload ipnat then ppp starting, and it's OK. Can I build my >> kernel to make tun interface on startup sach as ppp interface? SZ> Maybe you could do some ifconfig(8) magic, but you definitely could use SZ> ppp's built-in NAT (by inlcuding `nat enable yes' in the config file). SZ> HTH, Initialization of ipnat is done earlier than rc.network script is running. Therefore, I need some other feature. How does ppp and faith interfaces are in ifconfig in startup? Can I do same thing with tun interface. -- Lev Klimin mailto:[EMAIL PROTECTED] (8362) 42-15-49 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
constant tun interface
Hello! I have little trouble. I have 4.10-release with ppp ant ipnat. On startup ipnat reload it's rules with interface tun0 in statments which is ppp's device. But before running ppp, there is no tun device in system [8:48:04][~]:garbage# ifconfig fxp0: flags=8843 mtu 1500 inet 195.161.208.151 netmask 0xffc0 broadcast 195.161.208.191 ether 00:a0:c9:4b:09:29 media: Ethernet 10baseT/UTP status: active fxp1: flags=8843 mtu 1500 inet 172.16.0.9 netmask 0xfff8 broadcast 172.16.0.15 ether 00:a0:c9:b6:59:a1 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff00 ppp0: flags=8010 mtu 1500 faith0: flags=8002 mtu 1500 [8:48:09][~]:garbage# Because of lack of tun interface, further ipnat rules don't work. I can reload ipnat then ppp starting, and it's OK. Can I build my kernel to make tun interface on startup sach as ppp interface? I build my kernel with option pseudo-device tun1 #Tunnel driver (ppp(8), nos-tun(8)) but after reboot I don't see tun interface in ifconfig output. Cat you help me? -- Lev Klimin mailto:[EMAIL PROTECTED] +7 (8362) 42-15-49 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
NIC ne2000
Hello! I have 4.9-release. I have old noname NIC. On the top of main chip I see "NE2000 Compatible". I see in LINT for that: --- from LINT--- # # Network interfaces: `cx', `ed', `el', `ep', `ie', `is', `le', `lnc' # # ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503 device ed0 at isa? port 0x280 irq 5 iomem 0xd8000 I have began to build my kernel with follow option for this NIC: device ed0 at isa? port 0x280 irq 5 iomem 0xd8000 but I've see: cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -mpreferred-stack-boundary=2 vers.c linking kernel if_ed.o: In function `ed_tick': if_ed.o(.text+0x2706): undefined reference to `mii_tick' if_ed.o: In function `ed_init': if_ed.o(.text+0x2afb): undefined reference to `mii_mediachg' if_ed.o: In function `ed_ifmedia_upd': if_ed.o(.text+0x4dca): undefined reference to `mii_mediachg' if_ed.o: In function `ed_ifmedia_sts': if_ed.o(.text+0x4e03): undefined reference to `mii_pollstat' *** Error code 1 Stop in /usr/obj/usr/src/sys/PULS. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Then I've add miibus support: device miibus and kernel have been compiled. Why there is no anything about miibus in LINT when use ISA NIC (only PCI adapters) such as NE2000. May be add that useful commetnts in LINT in order to other people don't have this trouble. May be I'm mistake? Thank you. -- Lev Klimin mailto:[EMAIL PROTECTED] (8362) 42-15-49 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ipfw2
Good morning! I have 4.9-release. I'm interesting ipfw2. I have builded /usr/src/lib/libalias and /usr/src/sbin/ipfw with -DIPFW2, kernet with option IPFW2. >From man ipfw --- src and dst: {addr | { addr or ... }} [[not] ports] addr: [not] {any | me | addr-list | addr-set} addr-set: addr[/masklen]{list} list: {num | num-num}[,list] --- I think that it's right: ipfw 1000 add permit all from 192.168.1.1/24{3,5,9} to any but I see follwing: ipfw: bad width ``243'' If I do: ipfw 10005 add permit all from 192.168.1.3,192.168.1.5,192.168.1.9 to any then 10005 allow ip from 192.168.1.3,192.168.1.5,192.168.1.9 to any Can you help me? Thank you. -- Lev Klimin mailto:[EMAIL PROTECTED] (8362) 42-15-49 19:37:26 22 DEC 2003 г. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
see release version in /usr/src
Hi! How can I see, what is release version in my /usr/src? -- Lev Klimin mailto:[EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
natd & ipfw
Good morning! I have 4.9-release. I'm interesting natd and ipfw. My tested box have two interface 172.16.0.10/29 and 195.161.208.210/30. # ifpw list 00500 divert 8668 ip from any to not 172.16.0.8/29 01000 allow ip from any to any # natd -v -a 195.161.208.210 When I ping 195.161.208.130 from machine behind firewall (172.16.0.9) I see. In [ICMP] [ICMP] 172.16.0.9 -> 195.161.208.130 8(0) aliased to [ICMP] 172.16.0.9 -> 195.161.208.130 8(0) Out [ICMP] [ICMP] 172.16.0.9 -> 195.161.208.130 8(0) aliased to [ICMP] 195.161.208.210 -> 195.161.208.130 8(0) ICMP packet flow through filter in two place: in ip_in and ip_out. It diverted to natd twice. Why in first it's source address doesn't change, but only in ip_out? If I do following 00500 divert 8668 ip from any to not 172.16.0.8/29 in then natd don't change source address, and ping don't work. I thinked that natd must do NAT whenever and wherever it work. May I be mistaken? Sorry for the trivial question, but I'm not a expert in FreeBSD, I'm only studying. Thank you. -- Lev Klimin mailto:[EMAIL PROTECTED] (8362) 42-15-49 19:37:26 2 декабря 2003 г. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
pppd
Good morning! I have 4.9-release. I'm having little problem with time. I live in Russia on Moscow-west+00 time. My clock is local. My timezome is /usr/share/zoneinfo/Europe/Moscow. To resolve this trouble I see following: 1. Say FreeBSD that my clock is local. 2. Set timezone. I used for it /stand/sysinstall. But FreeBSD think that clock is GMT, not local. Let's now 9:46:03 in Moscow #date 12:46:03 (MSK) #zdump /usr/share/timezone/Europe/Moscow /usr/share/timezone/Europe/Moscow Fri Dec 5 12:46:07 2003 MSK #diff /etc/localtime /usr/share/timezone/Europe/Moscow Why my FreeDSD work on GMT and not on localtime? Thank you. -- Lev Klimin mailto:[EMAIL PROTECTED] (8362) 42-15-49 19:37:26 2 декабря 2003 г. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
pppd
Good evening! I have 4.9-release. I run pppd to dial ISP. Pppd have persist option to retrieve lost connections. Today I wanted to check, how it works with init. I added in /etc/ttys follow: ---begin chunk # pppd for ISP on com1 # ttyd0 "/usr/sbin/pppd /dev/ttyd0 38400" dialup on #ttyd1 "/usr/libexec/getty std.9600" dialup off secure #ttyd2 "/usr/libexec/getty std.9600" dialup off secure #ttyd3 "/usr/libexec/getty std.9600" dialup off secure ---end of chunk After # kill -1 1, I see [22:48:09][~]:metal# ps -ax | grep pppd 2363 ?? Ss 0:00,01 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0 2365 ?? Ss 0:00,00 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0 2367 ?? Ss 0:00,00 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0 2369 ?? Ss 0:00,00 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0 Why init run 4 pppd's processes? Can I fix it? Thank you. -- Lev Klimin mailto:[EMAIL PROTECTED] (8362) 42-15-49 19:37:26 2 декабря 2003 г. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
[no subject]
Hi! I've FreeBSD-4.8-release with two Ethernet adapters Intel82257. Before I'd 4.7-release and I'd no problem. Now if I up second interface fxp1, command netstat -r can't correctly issue routing table from kernel. --- # ifconfig fxp1 up # # netstat -r Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire defaultgate-bb-fe0-1 UGSc24 fxp0 localhost localhost UH 0 45lo0 --- As soon as I down fxp1, netstat -r work wright. --- # ifconfig fxp1 up # # netstat -r Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire defaultgate-bb-fe0-1 UGSc25 fxp0 localhost localhost UH 0 67lo0 195.161.208.128/26 link#1 UC 50 fxp0 aqua 00:20:ed:1d:ec:0e UHLW1 373 fxp0989 lion 00:90:27:23:cb:38 UHLW616408 fxp0 1142 gate-bb-fe0-1 00:02:b9:b9:50:b0 UHLW30 fxp0 1059 max1 00:c0:7b:a9:d3:3f UHLW00 fxp0 1186 alteon-bb-900:60:cf:4a:d1:80 UHLW00 fxp0 1129 If fxp1 up, I may ping address on this interface, but telnet is very slowly. Can you help me, please? -- Lev Klimin mailto:[EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"