Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1. 3.13.0-37-generic kernal
  2. Kernel IP routing table
  3. Destination Gateway Genmask Flags Metric Ref Use Iface
  4. 0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0
  5. 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
  6. 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
  7. 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth1
  8.  
  9. Settings for eth0:
  10. Supported ports: [ TP MII ]
  11. Supported link modes: 10baseT/Half 10baseT/Full
  12. 100baseT/Half 100baseT/Full
  13. 1000baseT/Half 1000baseT/Full
  14. Supported pause frame use: No
  15. Supports auto-negotiation: Yes
  16. Advertised link modes: 10baseT/Half 10baseT/Full
  17. 100baseT/Half 100baseT/Full
  18. 1000baseT/Half 1000baseT/Full
  19. Advertised pause frame use: Symmetric Receive-only
  20. Advertised auto-negotiation: Yes
  21. Link partner advertised link modes: 10baseT/Half 10baseT/Full
  22. 100baseT/Half 100baseT/Full
  23. 1000baseT/Half 1000baseT/Full
  24. Link partner advertised pause frame use: Symmetric Receive-only
  25. Link partner advertised auto-negotiation: Yes
  26. Speed: 1000Mb/s
  27. Duplex: Full
  28. Port: MII
  29. PHYAD: 0
  30. Transceiver: internal
  31. Auto-negotiation: on
  32. Supports Wake-on: pumbg
  33. Wake-on: g
  34. Current message level: 0x00000033 (51)
  35. drv probe ifdown ifup
  36.  
  37.  
  38. Settings for eth1:
  39. Supported ports: [ TP ]
  40. Supported link modes: 10baseT/Half 10baseT/Full
  41. 100baseT/Half 100baseT/Full
  42. 1000baseT/Full
  43. Supported pause frame use: No
  44. Supports auto-negotiation: Yes
  45. Advertised link modes: 10baseT/Half 10baseT/Full
  46. 100baseT/Half 100baseT/Full
  47. 1000baseT/Full
  48. Advertised pause frame use: No
  49. Advertised auto-negotiation: Yes
  50. Speed: 1000Mb/s
  51. Duplex: Full
  52. Port: Twisted Pair
  53. PHYAD: 2
  54. Transceiver: internal
  55. Auto-negotiation: on
  56. MDI-X: off (auto)
  57. Supports Wake-on: pumbg
  58. Wake-on: g
  59. Current message level: 0x00000007 (7)
  60. drv probe link
  61. Link detected: yes
  62.  
  63.  
  64. more /etc/network/interfaces
  65. # interfaces(5) file used by ifup(8) and ifdown(8)
  66. auto lo
  67. iface lo inet loopback
  68.  
  69. auto eth0
  70. iface eth0 inet dhcp
  71.  
  72. auto eth1
  73. iface eth1 inet static
  74. address 10.10.10.10
  75. network 10.10.10.0
  76. netmask 255.255.255.0
  77. broadcast 10.10.10.255
  78.  
  79. more /etc/udev/rules.d/70-persistent-net.rules
  80. # This file was automatically generated by the /lib/udev/write_net_rules
  81. # program, run by the persistent-net-generator.rules rules file.
  82. #
  83. # You can modify it, as long as you keep each rule on a single
  84. # line, and change only the value of the NAME= key.
  85.  
  86. # PCI device 0x8086:0x153b (e1000e)
  87. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:5f:f4:b9:0d:25", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
  88.  
  89. # PCI device 0x10ec:0x8168 (r8169)
  90. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="64:66:b3:02:31:80", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
  91.  
  92. Chain PREROUTING (policy ACCEPT 11685 packets, 1204K bytes)
  93. num pkts bytes target prot opt in out source destination
  94.  
  95. Chain INPUT (policy ACCEPT 3332 packets, 698K bytes)
  96. num pkts bytes target prot opt in out source destination
  97.  
  98. Chain OUTPUT (policy ACCEPT 50099 packets, 3341K bytes)
  99. num pkts bytes target prot opt in out source destination
  100.  
  101. Chain POSTROUTING (policy ACCEPT 53301 packets, 3541K bytes)
  102. num pkts bytes target prot opt in out source destination
  103. Chain INPUT (policy ACCEPT 690K packets, 252M bytes)
  104. num pkts bytes target prot opt in out source destination
  105.  
  106. Chain FORWARD (policy ACCEPT 184K packets, 145M bytes)
  107. num pkts bytes target prot opt in out source destination
  108. 1 0 0 DROP tcp -- eth1 * 10.10.10.0/24 10.0.0.0/24 multiport dports !22,80,443
  109.  
  110. Chain OUTPUT (policy ACCEPT 585K packets, 81M bytes)
  111. num pkts bytes target prot opt in out source destination
  112.  
  113.  
  114. My intention is simple.... to isolate eth0 LAN from eth1 LAN in (nearly) every way except --dport 22 etc (see rule in chain)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement