Advertisement
bagu

Reseau

May 30th, 2013
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.39 KB | None | 0 0
  1. root@tomato:/tmp/home/root# brctl show
  2. bridge name     bridge id            STP enabled     interfaces
  3. br0             8000.08606ecbf550       no              vlan1
  4.                                    eth1
  5.                                    eth2
  6. br1             8000.08606ecbf550       no              vlan3
  7.                                    wl0.1
  8. br2             8000.08606ecbf550       no              vlan4
  9.  
  10.  
  11. root@tomato:/tmp/home/root# iptables -L -v
  12. Chain INPUT (policy DROP 17 packets, 1281 bytes)
  13.  pkts bytes target     prot opt in     out     source               destination
  14.     0     0 DROP       all  -f  any    any     anywhere             anywhere
  15.     0     0 DROP       tcp  --  any    any     anywhere             anywhere            tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG
  16.     0     0 DROP       tcp  --  any    any     anywhere             anywhere            tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE
  17.     1   124 DROP       tcp  --  any    any     anywhere             anywhere            tcp flags:!FIN,SYN,RST,ACK/SYN state NEW
  18.   993 39756 DROP       all  --  any    any     anywhere             anywhere            state INVALID
  19.   670 81333 ACCEPT     all  --  any    any     anywhere             anywhere            state RELATED,ESTABLISHED
  20.    68  5160 ACCEPT     all  --  lo     any     anywhere             anywhere
  21.   523 95767 ACCEPT     all  --  br0    any     anywhere             anywhere
  22.     0     0 ACCEPT     all  --  br1    any     anywhere             anywhere
  23.     0     0 ACCEPT     all  --  br2    any     anywhere             anywhere
  24.     0     0 ACCEPT     icmp --  any    any     78.153.240.201       anywhere
  25.    30 31440 ACCEPT     ipv6 --  any    any     anywhere             anywhere
  26.     2   192 ACCEPT     icmp --  any    any     anywhere             anywhere            limit: avg 1/sec burst 5
  27.     0     0 ACCEPT     udp  --  any    any     anywhere             anywhere            udp dpts:33434:33534 limit: avg 5/sec burst 5
  28.     0     0 ACCEPT     udp  --  any    any     anywhere             anywhere            udp spt:bootps dpt:bootpc
  29.     0     0 ACCEPT     igmp --  any    any     anywhere             base-address.mcast.net/4
  30.     0     0 ACCEPT     udp  --  any    any     anywhere             base-address.mcast.net/4 udp dpt:!upnp
  31.  
  32. Chain FORWARD (policy DROP 0 packets, 0 bytes)
  33.  pkts bytes target     prot opt in     out     source               destination
  34. 12478 7902K ACCEPT     all  --  br0    br0     anywhere             anywhere
  35.     0     0 ACCEPT     all  --  br1    br1     anywhere             anywhere
  36.     0     0 ACCEPT     all  --  br2    br2     anywhere             anywhere
  37.     0     0 ACCEPT     all  --  br0    br1     proxy.workgroup      192.168.2.130
  38.     0     0 ACCEPT     all  --  br0    br2     proxy.workgroup      192.168.3.2
  39.     0     0 ACCEPT     all  --  br0    br2     portabledell.workgroup  192.168.3.2
  40.     0     0 ACCEPT     all  --  br2    br0     192.168.3.2          proxy.workgroup
  41.   153  6120 DROP       all  --  any    any     anywhere             anywhere            state INVALID
  42.  1498 75288 TCPMSS     tcp  --  any    any     anywhere             anywhere            tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
  43. 61854   52M ACCEPT     all  --  any    any     anywhere             anywhere            state RELATED,ESTABLISHED
  44.     0     0 DROP       all  --  br0    br1     anywhere             anywhere
  45.     0     0 DROP       all  --  br0    br2     anywhere             anywhere
  46.     0     0 DROP       all  --  br1    br0     anywhere             anywhere
  47.     0     0 DROP       all  --  br1    br2     anywhere             anywhere
  48.     0     0 DROP       all  --  br2    br0     anywhere             anywhere
  49.     0     0 DROP       all  --  br2    br1     anywhere             anywhere
  50.   512 31156 wanin      all  --  vlan2  any     anywhere             anywhere
  51.   292 15306 wanout     all  --  any    vlan2   anywhere             anywhere
  52.   292 15306 ACCEPT     all  --  br0    any     anywhere             anywhere
  53.     0     0 ACCEPT     all  --  br1    any     anywhere             anywhere
  54.     0     0 ACCEPT     all  --  br2    any     anywhere             anywhere
  55.     0     0 upnp       all  --  vlan2  any     anywhere             anywhere
  56.  
  57. Chain OUTPUT (policy ACCEPT 2265 packets, 688K bytes)
  58.  pkts bytes target     prot opt in     out     source               destination
  59.  
  60. Chain upnp (1 references)
  61.  pkts bytes target     prot opt in     out     source               destination
  62.  
  63. Chain wanin (1 references)
  64.  pkts bytes target     prot opt in     out     source               destination
  65.     0     0 ACCEPT     udp  --  any    any     anywhere             base-address.mcast.net/4
  66.   463 28304 ACCEPT     tcp  --  any    any     anywhere             wwwbagubiz.workgroup tcp dpt:www
  67.     1    52 ACCEPT     tcp  --  any    any     anywhere             wwwbagubiz.workgroup tcp dpt:ftp
  68.     0     0 ACCEPT     tcp  --  any    any     anywhere             wwwbagubiz.workgroup tcp dpt:imap2
  69.     0     0 ACCEPT     tcp  --  any    any     anywhere             wwwbagubiz.workgroup tcp dpt:imaps
  70.     0     0 ACCEPT     tcp  --  any    any     anywhere             wwwbagubiz.workgroup tcp dpt:64738
  71.     1    40 ACCEPT     udp  --  any    any     anywhere             wwwbagubiz.workgroup udp dpt:64738
  72.     3   180 ACCEPT     tcp  --  any    any     anywhere             wwwbagubiz.workgroup tcp dpt:pop3
  73.     0     0 ACCEPT     tcp  --  any    any     anywhere             wwwbagubiz.workgroup tcp dpt:3389
  74.     6   300 ACCEPT     tcp  --  any    any     anywhere             wwwbagubiz.workgroup tcp dpt:smtp
  75.     0     0 ACCEPT     tcp  --  any    any     anywhere             wwwbagubiz.workgroup tcp dpt:ssmtp
  76.     0     0 ACCEPT     tcp  --  any    any     anywhere             proxy.workgroup     tcp dpt:5500
  77.     0     0 ACCEPT     udp  --  any    any     anywhere             proxy.workgroup     udp dpt:5500
  78.    38  2280 ACCEPT     tcp  --  any    any     anywhere             wwwbagubiz.workgroup tcp dpts:31456:31458
  79.     0     0 ACCEPT     tcp  --  any    any     anywhere             proxy.workgroup     tcp dpt:5901
  80.  
  81. Chain wanout (1 references)
  82.  pkts bytes target     prot opt in     out     source               destination
  83.  
  84.  
  85. Donc :
  86. 192.168.1.30 doit pouvoir transférer vers 192.168.1.0/24, 192.168.2.130 et 192.168.3.2
  87. 192.168.1.35 doit pouvoir transférer vers 192.168.1.0/24 et vers 192.168.3.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement