PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, September 26, 2022

[FIXED] How to bind gpsd to some specific network interface?

 September 26, 2022     bind, daemon, gps, gpsd, linux     No comments   

Issue

In my pc currently 3 different network interfaces exists (interface1,interface2,interface3 ).I want to start gpsd daemon such a way that it should bind to some specific interface which i want.

Currently iam running gpsd as below

gpsd -b -n   #Here gpsd binds to localhost.

My goal is to run gpsd something like

gpsd -b -n interface1_ip   #here gpsd should bind to only interface1. 

how can i do this?


Solution

A quick and dirty way would be to start gpsd with the -G option, to enable monitoring all interfaces (by default, gpsd will only listen to localhost for security and privacy) and then disable access on unwanted interfaces by having proper firewall rules (disable access on two unneeded interfaces). Gpsd will listen on port 2947, you can change that with the -S option to fit your needs.



Answered By - Rado
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing