Hi!
I have a problem with traffic shaper.
I'm ISP sysadmin, we have to connect another LAN into our Ethernet with
masquerading and traffic shaping.
I've compiled kernel 2.2.7 with all the nececcary
options enabled (AFAIK).
Masquerading works perfectly but shaper doesn't pass through any
packets. I doubt if it is attached to eth1 properly
(i didn't found up-to-date shapecfg, old one required changes
in the #includes).
Does anybody knows its primary homepage?
Here is my setup:
# ipchains -P forward DENY
# ipchains -A forward -s 192.168.1.1/24 -j MASQ
# ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy DENY):
target prot opt source destination ports
MASQ all ------ 192.168.1.0/24 anywhere n/a
Chain output (policy ACCEPT):
# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
64 bytes from 192.168.1.2: icmp_seq=0 ttl=128 time=1.8 ms
64 bytes from 192.168.1.2: icmp_seq=1 ttl=128 time=1.1 ms
--- 192.168.1.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1.1/1.4/1.8 ms
# insmod shaper
CymruNet Traffic Shaper BETA 0.04 for Linux 2.1
Traffic shaper initialised.
# shapecfg attach shaper0 eth1
# shapecfg speed shaper0 eth1
# ifconfig shaper0 192.168.1.1 netmask 255.255.255.0 bcast 192.168.1
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
eth0 Link encap:Ethernet HWaddr 00:80:AD:38:92:DF
inet addr:195.161.12.76 Bcast:195.161.12.95 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:169 errors:0 dropped:0 overruns:0 frame:0
TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:9 Base address:0xff40
eth1 Link encap:Ethernet HWaddr 00:80:AD:3A:23:F5
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:104 errors:0 dropped:0 overruns:0 frame:0
TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:10 Base address:0xff20
shaper0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.1.1 Mask:255.255.255.0
UP RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
# route add -net 192.168.1.0 netmask 255.255.255.0 dev shaper0
# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
--- 192.168.1.2 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
#
What happened?
My system is Debian 2.0, AMD K5, 20 RAM, two ne2k-pci compatible PCI
Realtek 8029 network cards (driver compiled in).
Maybe kernel gurus will show some obvious mistake of mine?..
Best regards,
Vsevolod Sipakoff mailto:[EMAIL PROTECTED]
ISP "MegaLink",
http://chita.rt.ru
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]