Ubuntu Pastebin

Paste from davegarath at Mon, 27 Apr 2015 19:57:39 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
root@dave-desktop:~# cat /proc/sys/net/ipv4/ip_forward 
1
root@dave-desktop:~# iptables -t nat -L -nv
Chain PREROUTING (policy ACCEPT 2722K packets, 205M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain INPUT (policy ACCEPT 205K packets, 33M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 154K packets, 14M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain POSTROUTING (policy ACCEPT 3234 packets, 154K bytes)
 pkts bytes target     prot opt in     out     source               destination         
 151K   14M MASQUERADE  all  --  *      eth0    0.0.0.0/0            0.0.0.0/0           


root@dave-desktop:~# ifconfig tun2
tun2      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:10.19.1.1  P-t-P:10.19.1.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:98 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:7776 (7.7 KB)  TX bytes:420 (420.0 B)


root@dave-desktop:~# ping 172.24.252.33
PING 172.24.252.33 (172.24.252.33) 56(84) bytes of data.
64 bytes from 172.24.252.33: icmp_seq=1 ttl=60 time=5.76 ms
64 bytes from 172.24.252.33: icmp_seq=2 ttl=60 time=4.97 ms



root@dave-laptop:~# ifconfig tun2
tun2      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:10.19.1.2  P-t-P:10.19.1.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:420 (420.0 B)  TX bytes:7776 (7.7 KB)


root@dave-laptop:~# route -n | grep 252.33
172.24.252.33   10.19.1.1       255.255.255.255 UGH   0      0        0 tun2

root@dave-laptop:~# ping 172.24.252.33
PING 172.24.252.33 (172.24.252.33) 56(84) bytes of data.
^C
--- 172.24.252.33 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1007ms
Download as text