Created
January 25, 2013 16:05
-
-
Save lyhcode/4635571 to your computer and use it in GitHub Desktop.
all relevant configuration files and the route tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 | |
options=3<RXCSUM,TXCSUM> | |
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 | |
inet 127.0.0.1 netmask 0xff000000 | |
inet6 ::1 prefixlen 128 | |
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 | |
stf0: flags=0<> mtu 1280 | |
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 | |
options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4> | |
ether 10:9a:dd:46:41:8d | |
media: autoselect (none) | |
status: inactive | |
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 | |
ether f0:b4:79:14:37:15 | |
inet6 fe80::f2b4:79ff:fe14:3715%en1 prefixlen 64 scopeid 0x5 | |
inet 192.168.0.105 netmask 0xffffff00 broadcast 192.168.0.255 | |
media: autoselect | |
status: active | |
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304 | |
ether 02:b4:79:14:37:15 | |
media: autoselect | |
status: inactive | |
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078 | |
lladdr 70:cd:60:ff:fe:07:1c:38 | |
media: autoselect <full-duplex> | |
status: inactive | |
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1444 | |
inet 192.168.100.234 --> 192.168.100.1 netmask 0xffffff00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ netstat -rn | |
Routing tables | |
Internet: | |
Destination Gateway Flags Refs Use Netif Expire | |
default 192.168.0.1 UGSc 106 0 en1 | |
default 192.168.100.1 UGScI 1 0 ppp0 | |
60.248.47.244 192.168.0.1 UGHS 0 0 en1 | |
127 127.0.0.1 UCS 0 0 lo0 | |
127.0.0.1 127.0.0.1 UH 5 62584 lo0 | |
169.254 link#5 UCS 0 0 en1 | |
192.168.0 link#5 UCS 3 0 en1 | |
192.168.0.1 74:ea:3a:bd:13:f8 UHLWIir 109 144 en1 1064 | |
192.168.0.101 c0:cb:38:49:ab:fc UHLWIi 0 10 en1 1198 | |
192.168.0.105 127.0.0.1 UHS 1 0 lo0 | |
192.168.0.255 ff:ff:ff:ff:ff:ff UHLWbI 0 8 en1 | |
192.168.100 ppp0 USc 1 0 ppp0 | |
192.168.100.1 192.168.100.234 UHr 2 0 ppp0 | |
Internet6: | |
Destination Gateway Flags Netif Expire | |
::1 link#1 UHL lo0 | |
fe80::%lo0/64 fe80::1%lo0 UcI lo0 | |
fe80::1%lo0 link#1 UHLI lo0 | |
fe80::%en1/64 link#5 UCI en1 | |
fe80::1610:9fff:fed5:6249%en1 14:10:9f:d5:62:49 UHLWIi en1 | |
fe80::2acf:daff:fee1:3336%en1 28:cf:da:e1:33:36 UHLWIi en1 | |
fe80::baf6:b1ff:fe1a:ee2d%en1 b8:f6:b1:1a:ee:2d UHLWIi en1 | |
fe80::e2f8:47ff:fe07:f70c%en1 e0:f8:47:7:f7:c UHLWIi en1 | |
fe80::e2f8:47ff:fe30:1944%en1 e0:f8:47:30:19:44 UHLWIi en1 | |
fe80::f2b4:79ff:fe14:3715%en1 f0:b4:79:14:37:15 UHLI lo0 | |
ff01::%lo0/32 fe80::1%lo0 UmCI lo0 | |
ff01::%en1/32 link#5 UmCI en1 | |
ff02::%lo0/32 fe80::1%lo0 UmCI lo0 | |
ff02::%en1/32 link#5 UmCI en1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
br0 Link encap:Ethernet HWaddr 00:13:49:aa:0d:89 | |
inet addr:60.248.47.244 Bcast:60.248.47.255 Mask:255.255.255.0 | |
inet6 addr: fe80::213:49ff:feaa:d89/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:936919 errors:0 dropped:1 overruns:0 frame:0 | |
TX packets:356404 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:194013983 (194.0 MB) TX bytes:624018574 (624.0 MB) | |
eth1 Link encap:Ethernet HWaddr 00:13:49:aa:0d:89 | |
inet6 addr: fe80::213:49ff:feaa:d89/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:2110292 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:2213898 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:779095050 (779.0 MB) TX bytes:2280401157 (2.2 GB) | |
Interrupt:20 Base address:0xd000 | |
eth2 Link encap:Ethernet HWaddr 00:1b:21:84:5b:35 | |
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0 | |
inet6 addr: fe80::21b:21ff:fe84:5b35/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:203305 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:1954 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:42963223 (42.9 MB) TX bytes:248792 (248.7 KB) | |
Interrupt:17 Memory:f8080000-f80a0000 | |
lo Link encap:Local Loopback | |
inet addr:127.0.0.1 Mask:255.0.0.0 | |
inet6 addr: ::1/128 Scope:Host | |
UP LOOPBACK RUNNING MTU:16436 Metric:1 | |
RX packets:57516 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:57516 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:5326508 (5.3 MB) TX bytes:5326508 (5.3 MB) | |
ppp0 Link encap:Point-to-Point Protocol | |
inet addr:192.168.100.1 P-t-P:192.168.100.234 Mask:255.255.255.255 | |
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1496 Metric:1 | |
RX packets:120 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:183 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:3 | |
RX bytes:9305 (9.3 KB) TX bytes:34808 (34.8 KB) | |
virbr0 Link encap:Ethernet HWaddr 82:9a:b9:9e:3f:ec | |
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 | |
UP BROADCAST MULTICAST 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 txqueuelen:0 | |
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | |
vnet0 Link encap:Ethernet HWaddr fe:54:00:fe:eb:66 | |
inet6 addr: fe80::fc54:ff:fefe:eb66/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:400716 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:1008323 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:500 | |
RX bytes:398316515 (398.3 MB) TX bytes:485372757 (485.3 MB) | |
vnet1 Link encap:Ethernet HWaddr fe:54:00:6e:76:3f | |
inet6 addr: fe80::fc54:ff:fe6e:763f/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:195274 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:948080 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:500 | |
RX bytes:1183899549 (1.1 GB) TX bytes:133619776 (133.6 MB) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo iptables -L | |
Chain INPUT (policy ACCEPT) | |
target prot opt source destination | |
ACCEPT udp -- anywhere anywhere udp dpt:domain | |
ACCEPT tcp -- anywhere anywhere tcp dpt:domain | |
ACCEPT udp -- anywhere anywhere udp dpt:bootps | |
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps | |
Chain FORWARD (policy ACCEPT) | |
target prot opt source destination | |
ACCEPT all -- anywhere 192.168.122.0/24 state RELATED,ESTABLISHED | |
ACCEPT all -- 192.168.122.0/24 anywhere | |
ACCEPT all -- anywhere anywhere | |
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable | |
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable | |
Chain OUTPUT (policy ACCEPT) | |
target prot opt source destination |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logwtmp | |
bcrelay eth2 | |
localip 192.168.100.1 | |
remoteip 192.168.100.234-238,192.168.100.245 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ route -n | |
Kernel IP routing table | |
Destination Gateway Genmask Flags Metric Ref Use Iface | |
0.0.0.0 60.248.47.254 0.0.0.0 UG 100 0 0 br0 | |
60.248.47.0 0.0.0.0 255.255.255.0 U 0 0 0 br0 | |
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth2 | |
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 | |
192.168.100.234 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 | |
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment