What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

"Internal" FTP, OpenVPN client DNS configuration

rnemec

New Around Here
Hi all, I have 2 questions (I hope they are not yet answered):

  1. I've successfully configured OpenVPN client to connect from my home to my work network. But I am still missing the ability to reconfigure dnsmasq after connect, so it behave like this:

    • Lets say that Windows domain of my work is mydomain.inside
    • My router has DHCP for LAN enabled with domain "mydomain.inside" in options, so every client in LAN has name in form of <computer>.mydomain.inside
    • I want the DNS queries in form somecomputer.mydomain.inside (or simply somecomputer) to go directly to DNS acquired from OpenVPN server on connect
    • Other addresses like www.google.com should be answered by DNS servers from my ISP (i.e. DNS servers configured for LAN interface)
    • i.e. something like reconfiguring dnsmasq with --server=/mydomain.inside/1.2.3.4 where 1.2.3.4 is DNS sent by OpenVPN
    • Yes, I know about "Accept DNS Configuration" parameter in OpenVPN client configuration, but I am afraid none of its values is doing what I am trying to achieve
  2. Is it possible to temporarily configure FTP server in router so the internal filesystem of router is accessible? Editing large configuration in vi is terrible...
Many thanks for any response. :-)
 
For the second point:

Just use WinSCP over SSH :) No need for FTP, only SSH for the lan side is required.
 
i.e. something like reconfiguring dnsmasq with --server=/mydomain.inside/1.2.3.4 where 1.2.3.4 is DNS sent by OpenVPN

Did you try manually adding the desired server directive 'server=/mydomain.inside/1.2.3.4'
into '/jffs/configs/dnsmasq.conf.add'

then bounce dnsmasq
Code:
service restart_dnsmasq
 
Did you try manually adding the desired server directive 'server=/mydomain.inside/1.2.3.4'
into '/jffs/configs/dnsmasq.conf.add'

That's of course possible, but I was looking for something based of configuration pushed from OpenVPN server, because my organization can change IPs of DNS servers anytime...
On my previous router I had OpenWrt installed and there the "up-down" script receives a lot more parameters, including DNS server IPs pushed by OpenVPN server. Also there is a strange thing, that "down" event of OpenVPN connection sends "init" as last parameter to openvpn-event, can anyone explain it?
 
That's of course possible, but I was looking for something based of configuration pushed from OpenVPN server, because my organization can change IPs of DNS servers anytime...
On my previous router I had OpenWrt installed and there the "up-down" script receives a lot more parameters, including DNS server IPs pushed by OpenVPN server. Also there is a strange thing, that "down" event of OpenVPN connection sends "init" as last parameter to openvpn-event, can anyone explain it?

The openvpn-event/vpnclientX-route-up scripts can still be used to dynamically update dnsmasq.

Simply extract the VPN DNS from either the VPN clientX.resolv or if using 'EXCLUSIVE' option in the GUI for DNS, then RMerlin copies the VPN DNS IP into the appropriate -t nat DNSVPNx chain in lieu of the DNS being passed to the scripts as a parameter.
 
Last edited:

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top