{"id":202,"date":"2022-04-25T14:33:00","date_gmt":"2022-04-25T12:33:00","guid":{"rendered":"http:\/\/www.ncodenicer.com\/?p=202"},"modified":"2026-05-14T07:25:21","modified_gmt":"2026-05-14T05:25:21","slug":"using-android-phone-for-network-access-on-freebsd","status":"publish","type":"post","link":"https:\/\/www.codenicer.com\/?p=202","title":{"rendered":"Using Android phone for network access on FreeBSD"},"content":{"rendered":"\n<p>Simply load urndis module<code><br># kldload urndis<br><\/code><br>Connect mobile phone using USB cable with FreeBSD machine. On phone choose &#8220;USB tethering&#8221; for USB. On FreeBSD machine there should appear new network device <strong>ue0<\/strong> or something similarly named. You can use for example <strong>dhclient ue0<\/strong> to pull IP address for that device and then you can configure routing to use that device as default route.<\/p>\n\n\n\n<p>N.B. If you prefer to use other DNS servers from what mobile provider is offering don&#8217;t forget to modify <strong>\/etc\/dhclient.conf<\/strong> by adding for example:<code><br>interface \"ue0\" {<br>    supersede domain-name-servers 1.1.1.1, 1.0.0.1;<br>}<br><\/code><br>Two above are CloudFlare&#8217;s, or you can for example use some from <a href=\"https:\/\/www.opennic.org\/\">OpenNIC<\/a> for free for use, free from tracking and free from censorship DNS servers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simply load urndis module# kldload urndisConnect mobile phone using USB cable with FreeBSD machine. On phone choose &#8220;USB tethering&#8221; for USB. On FreeBSD machine there should appear new network device ue0 or something similarly named. You can use for example dhclient ue0 to pull IP address for that device and then you can configure routing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[131,132,130,134,6,133],"class_list":["post-202","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-3g","tag-4g","tag-android","tag-dhclient","tag-freebsd","tag-umodem"],"_links":{"self":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=202"}],"version-history":[{"count":1,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions"}],"predecessor-version":[{"id":203,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions\/203"}],"wp:attachment":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}