miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems when I build latest

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
Nomadadon



Joined: 09 Nov 2020
Posts: 2
Location: Confusion

PostPosted: Mon Nov 09, 2020 1:56 am    Post subject: Problems when I build latest Reply with quote

I've noticed whenever I upgrade from github, build and install, it overwrites
/etc/miniupnpd/miniupnpd.conf. I've had to write a script that backs it up and then puts it back in place each time.

ext_ifname=ppp0
ext_ifname6=he-ipv6
listening_ip=em1
ipv6_disable=yes
enable_natpmp=no
enable_upnp=yes

I tried setting "listening_ip=172.20.0.0/16" and 172.20.0.1/16, miniupnp complains it's not valid and I have to use the interface.

Using the interface, minissdpd complains in the logs that some of my hosts on my 172.20.X.X network are not on a valid LAN.

Nov 8 18:55:57 wally minissdpd[2458694]: peer 172.20.10.27:59117 is not from a LAN
Nov 8 18:55:57 wally miniupnpd[2461458]: SSDP M-SEARCH from 172.20.10.27:59117 ST: upnp:rootdevice
Nov 8 18:55:57 wally miniupnpd[2461458]: Single search found
Nov 8 18:56:01 wally minissdpd[2458694]: peer 172.20.10.28:42403 is not from a LAN
Nov 8 18:56:01 wally miniupnpd[2461458]: SSDP M-SEARCH from 172.20.10.28:42403 ST: upnp:rootdevice
Nov 8 18:56:01 wally miniupnpd[2461458]: Single search found


Thoughts, help?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sun Nov 15, 2020 2:32 pm    Post subject: Reply with quote

indeed miniupnpd.conf is overwritten :
https://github.com/miniupnp/miniupnp/blob/master/miniupnpd/Makefile.linux#L144
what is your suggestion ?

what's the configuration of your network interface ?
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Nomadadon



Joined: 09 Nov 2020
Posts: 2
Location: Confusion

PostPosted: Sun Nov 15, 2020 4:00 pm    Post subject: Reply with quote

Sorry I don't know make syntax, but:
if -f $ConfigFile:
NewConfig -> $ConfigFile.New
else:
New Config -> $ConfigFile

That way if there's a change, I can diff mine against the 'new' to see what I should change in mine?


External Interfaces:
he-ipv6
ppp0 ( Century Link DSL )
enp9s4 ( physical which CL plugs into, no IP )

Internal Interfaces:
em1 - main interface
em1.5 - VLAN interface I'm testing on
em1.99 - VLAN interface also for testing.


Routes:
╰> $ ip route
default dev ppp0 scope link
172.20.0.0/16 dev em1 proto kernel scope link src 172.20.0.1
172.21.5.0/24 dev em1.5 proto kernel scope link src 172.21.5.1
172.21.10.0/24 dev em1.10 proto kernel scope link src 172.21.10.1
172.21.99.0/24 dev em1.99 proto kernel scope link src 172.21.99.1
172.21.101.0/24 dev em1.101 proto kernel scope link src 172.21.101.1
207.225.112.5 dev ppp0 proto kernel scope link src 209.181.77.168

╰> $ route | grep default |awk -- '{ print $8 }'
ppp0

╭── nomad @ wally ── 11:00 ──{ 0 )──( ~/Git-Repos/UPNP )
╰> $ route | grep default
default 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sun Nov 15, 2020 5:02 pm    Post subject: Reply with quote

The existing miniupnpd.conf is renamed to miniupnpd.conf.old

try listening_ip=em1/16 that's a trick to force network mask
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.