Access intranet with VPN through PPPoE
I have a home wired Ethernet network (1.1.0.0). One of the macs in this network is a mac mini Server (1.1.1.2). Another device (1.1.1.8) provides some valuable service which I want to use outside over the internet. My ISP gives me internet access through bridge connection at some routing device connected to the same Ethernet network (bridge, no IP). mac mini Server dials PPPoE to ISP and gets its static public 91.122.XXX.XXX IP. mac mini Server uses InternetConectionSharing (switched to start from 1.1.1.1) to give internet to the rest of Ethernet network. With InternetConnection switched on, mac mini Server gets another one local 1.1.1.1 IP.
At mac mini Server I have set up VPN to start from 1.1.1.100. Then I dial VPN to my 91.122.XXX.XXX server from my cellular network (90.30.XXX.XXX) having no access to my home network.
I can use 1.1.1.1 services from that iPhone. But I can not connect to any other device on home network except mac mini Server 1.1.1.1.
When I look at tcpdump it shows:
- PPPoE 90.30.XXX.XXX > 91.122.XXX.XXX packet
- TCP 1.1.1.1XX > 1.1.1.8 SYN packet
- TCP 1.1.1.8 > 1.1.1.1XX SYN ACK packet
- So, TCP SYN ACK does not get transmitted back from server over VPN.
How to deal with it? Please help me. Any clue? How to troubleshoot why response does not get back for all devices except server?
91.122.XXX.XXX:~ me$ sudo netstat -r -n -f inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 95.55.16.1 UGSc 79 21465 ppp0
default link#11 UCSI 0 0 bridge1
default 1.1.1.114 UGScI 0 0 ppp1
1.1.1/24 link#11 UC 8 0 bridge1
1.1.1.2 127.0.0.1 UHS 2 756 lo0
1.1.1.113 link#11 UHLWI 0 5 bridge1
1.1.1.114 91.122.XXX.XXX UHr 4 263 ppp1
1.1.1.114 bridge100:cb.2b.64 UHLS2 0 0 bridge1
95.55.16.1 91.122.XXX.XXX UHr 79 0 ppp0
127 127.0.0.1 UCS 0 0 lo0
127.0.0.1 127.0.0.1 UH 18 30108 lo0
91.122.XXX.XXX:~ me$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=1<PERFORMNUD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>
ether 10:dd:b1:bc:dd:f6
nd6 options=1<PERFORMNUD>
media: autoselect (1000baseT <full-duplex,flow-control,energy-efficient-ethernet>)
status: active
en1: flags=8823<UP,BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
ether 28:cf:e9:02:36:15
nd6 options=1<PERFORMNUD>
media: autoselect (<unknown type>)
status: inactive
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=60<TSO4,TSO6>
ether 32:00:11:e8:d5:a0
media: autoselect <full-duplex>
status: inactive
fw0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 4078
lladdr 44:fb:42:ff:fe:1e:8d:5a
media: autoselect <full-duplex>
status: inactive
bridge0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether 12:dd:b1:cb:2b:00
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en2 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 6 priority 0 path cost 0
media: <unknown type>
status: inactive
p2p0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 2304
ether 0a:cf:e9:02:36:15
media: autoselect
status: inactive
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
inet 91.122.XXX.XXX --> 95.55.16.1 netmask 0xff000000
utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380
inet6 fe80::a9b3:1267:b54b:3c55%utun0 prefixlen 64 scopeid 0xe
inet6 fd18:123a:86a6:4f5f:a9b3:1267:b54b:3c55 prefixlen 64
nd6 options=1<PERFORMNUD>
bridge100: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=3<RXCSUM,TXCSUM>
ether 12:dd:b1:cb:2b:64
inet 1.1.1.1 netmask 0xffffff00 broadcast 1.1.1.255
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en0 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 4 priority 0 path cost 0
media: autoselect
status: active
ppp1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1272
inet 91.122.XXX.XXX --> 1.1.1.114 netmask 0xff000000
OS X Mavericks (10.9.2), Xcode 5