{"id":8122,"date":"2015-06-23T11:05:08","date_gmt":"2015-06-23T16:05:08","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=8122"},"modified":"2015-09-30T07:28:15","modified_gmt":"2015-09-30T12:28:15","slug":"mlinux-scripts","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/utilities\/mlinux-scripts\/","title":{"rendered":"DHCP &#038; Router Scripts"},"content":{"rendered":"<p>The mlinux-scripts recipe provides a small set of simple scripts that are useful for demos, testing, and as examples for developers. They are not intended to be full-featured scripts that cover a wide-range of use cases.<\/p>\n<h3>mlinux-dhcpd<\/h3>\n<p>Simple script to stop and start the busybox udhcpd server. To edit dhcpd config, edit <code>\/etc\/udhcpd.conf<\/code>. The default configuration works with the default IP address of 192.168.2.1 and subnet mask of 255.255.255.0.<\/p>\n<pre class=\"brush:shell\">  Usage: mlinux-dhcpd start|stop|restart<\/pre>\n<h3>mlinux-cell-router<\/h3>\n<p>Configures the device as a basic network router\/firewall. All incoming connections on the WAN are blocked by default and all outbound traffic from the LAN is allowed. Enables IP forwarding and masquerading\/NAT.<\/p>\n<pre class=\"brush:shell\">  Usage: mlinux-cell-router start|stop [options]\r\n    options:\r\n      -l  LAN interfaces to allow, comma-separated (defaults to \"eth0\")\r\n      -w   WAN interface to route out (defaults to \"ppp0\")<\/pre>\n<h5>Ethernet to Cellular router example<\/h5>\n<pre class=\"brush:shell\">$ mlinux-set-apn APN (one-time only for GSM connections)\r\n$ mlinux-cell-router start\r\n$ mlinux-dhcpd start\r\n$ pppd call gsm<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The mlinux-scripts recipe provides a small set of simple scripts that are useful for demos, testing, and as examples for developers. They are not intended to be full-featured scripts that cover a wide-range of use cases. mlinux-dhcpd Simple script to stop and start the busybox udhcpd server. To edit dhcpd config, edit \/etc\/udhcpd.conf. The default [&hellip;]<\/p>\n","protected":false},"author":537,"featured_media":0,"parent":7905,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-8122","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/537"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=8122"}],"version-history":[{"count":10,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8122\/revisions"}],"predecessor-version":[{"id":8409,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8122\/revisions\/8409"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/7905"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=8122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}