← Back to team overview

ubuntu-phone team mailing list archive

Re: using the BQ as a router

 

Il 04/04/2015 18:40, Matthias Apitz ha scritto:
> 
> Hello,
> 
> While I have connected my netbook to the BQ via USB, and the BQ to the
> Internet via GSM/UMTS, can I use the BQ as a router? 
> Is gateway enabled in
> the kernel 

Yes:

phablet@ubuntu-phablet:~$ cat /proc/sys/net/ipv4/ip_forward
1


and the outgoing traffic NAT'ed behind its interfac to the
> provider?

Yes:

phablet@ubuntu-phablet:~$ sudo iptables -t nat -nvL POSTROUTING
Chain POSTROUTING (policy ACCEPT 167 packets, 10533 bytes)
 pkts bytes target     prot opt in     out     source
destination
   22  1636 MASQUERADE  all  --  *      *       10.42.0.0/24
!10.42.0.0/24

bye,
rob


Follow ups

References