Do kształtowania ruchu uzywam niceshapera
ifconfiG:
[root@router pkaczmar]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0E:2E:3E:29:A4
inet addr:83.3.141.90 Bcast:83.3.143.95 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:303426 errors:0 dropped:0 overruns:0 frame:0
TX packets:302195 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:215682090 (205.6 Mb) TX bytes:111878154 (106.6 Mb)
Interrupt:12 Base address:0xd000
eth1 Link encap:Ethernet HWaddr 00:50:BA:D1:CF:5B
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:292014 errors:0 dropped:0 overruns:0 frame:0
TX packets:307674 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:113367341 (108.1 Mb) TX bytes:216361892 (206.3 Mb)
Interrupt:5 Base address:0xf000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1568 (1.5 Kb) TX bytes:1568 (1.5 Kb)
***************************************
[root@router pkaczmar]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
83.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 83.3.141.89 0.0.0.0 UG 0 0 0 eth0
[root@router pkaczmar]#
***************************************
[root@router pkaczmar]# iptables -L -nv
Chain INPUT (policy DROP 385 packets, 54145 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 135,445
0 0 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:113 reject-with icmp-port-unreachable
0 0 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:1080 reject-with icmp-port-unreachable
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
21 1260 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 8 limit: avg 1/sec burst 5
92 8436 ACCEPT all -- !eth0 * 0.0.0.0/0 0.0.0.0/0
1 138 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
Chain FORWARD (policy DROP 23 packets, 2637 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 135,445
4852 1441K ACCEPT all -- !eth0 * 0.0.0.0/0 0.0.0.0/0
4118 2121K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT 222 packets, 19271 bytes)
pkts bytes target prot opt in out source destination
[root@router pkaczmar]#
***************************************
[root@router pkaczmar]# iptables -L -t nat -nv
Chain PREROUTING (policy ACCEPT 3708 packets, 290K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 8 packets, 372 bytes)
pkts bytes target prot opt in out source destination
2515 174K MASQUERADE all -- * eth0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 1 packets, 71 bytes)
pkts bytes target prot opt in out source destination
zciech pisze:
prosze o wynik:
ifconfig
route -n
iptables -L -nv
iptables -L -t nat -nv
Czego używasz do kształtowania ruchu?