Skip to content

Instantly share code, notes, and snippets.

@xoebus
Last active December 29, 2015 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xoebus/7738531 to your computer and use it in GitHub Desktop.
Save xoebus/7738531 to your computer and use it in GitHub Desktop.
bosh_q9qlsff59@c08689bb-b559-41be-878c-77c0c4142497:~$ ifconfig
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:65536 Metric:1
RX packets:16011 errors:0 dropped:0 overruns:0 frame:0
TX packets:16011 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3830284 (3.8 MB) TX bytes:3830284 (3.8 MB)
w-17cenqoqr5h-1 Link encap:Ethernet HWaddr 56:43:6f:55:ea:d1
inet addr:10.244.0.134 Bcast:10.244.0.135 Mask:255.255.255.252
inet6 addr: fe80::5443:6fff:fe55:ead1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1618820 errors:0 dropped:0 overruns:0 frame:0
TX packets:267986 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2437008988 (2.4 GB) TX bytes:18702192 (18.7 MB)
w-etq0o2onl2b-0 Link encap:Ethernet HWaddr de:00:0f:16:62:56
inet addr:10.254.0.1 Bcast:10.254.0.3 Mask:255.255.255.252
inet6 addr: fe80::dc00:fff:fe16:6256/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:516 errors:0 dropped:0 overruns:0 frame:0
TX packets:879 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:31441 (31.4 KB) TX bytes:1218603 (1.2 MB)
root@etq0o2onl2b:~# ifconfig
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:65536 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)
w-etq0o2onl2b-1 Link encap:Ethernet HWaddr 0e:12:3a:55:9f:26
inet addr:10.254.0.2 Bcast:10.254.0.3 Mask:255.255.255.252
inet6 addr: fe80::c12:3aff:fe55:9f26/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:880 errors:0 dropped:0 overruns:0 frame:0
TX packets:522 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1218645 (1.2 MB) TX bytes:31857 (31.8 KB)
root@c08689bb-b559-41be-878c-77c0c4142497:/var/vcap/data/agent/garden/depot/etq0o2onl2b# iptables-save
# Generated by iptables-save v1.4.4 on Sun Dec 1 18:02:07 2013
*nat
:PREROUTING ACCEPT [77:5032]
:INPUT ACCEPT [7:448]
:OUTPUT ACCEPT [1449:87537]
:POSTROUTING ACCEPT [1449:87537]
:warden-postrouting - [0:0]
:warden-prerouting - [0:0]
-A PREROUTING -j warden-prerouting
-A OUTPUT -o lo -j warden-prerouting
-A POSTROUTING -j warden-postrouting
-A warden-postrouting -s 10.254.0.0/22 -j SNAT --to-source 10.244.0.134
COMMIT
# Completed on Sun Dec 1 18:02:07 2013
# Generated by iptables-save v1.4.4 on Sun Dec 1 18:02:07 2013
*filter
:INPUT ACCEPT [1632685:2415771991]
:FORWARD ACCEPT [79:5292]
:OUTPUT ACCEPT [282372:18758230]
:warden-default - [0:0]
:warden-forward - [0:0]
-A FORWARD -i w-+ -j warden-forward
-A warden-default FATAL: Could not load /lib/modules/3.8.0-29-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.8.0-29-generic/modules.dep: No such file or directory
-m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A warden-forward -i w-17cenqoqr5h-1 -j ACCEPT
-A warden-forward -j DROP
COMMIT
# Completed on Sun Dec 1 18:02:07 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment