linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lars Mueller <admin@perfect-privacy.com>
To: linux-ppp@vger.kernel.org
Subject: Re: Wrong remote IP, bug or feature?
Date: Sun, 29 Sep 2013 12:55:23 +0000	[thread overview]
Message-ID: <5248233B.30001@perfect-privacy.com> (raw)
In-Reply-To: <5247FC26.8040200@perfect-privacy.com>

Ah ok, totally missed that option.. thanks for correcting my blindness

Lars



Am 29.09.13 14:31, schrieb Charlie Brady:
> On Sun, 29 Sep 2013, Lars Mueller wrote:
>
>> Hi,
>> I have set remoteip in the pppd.conf to an 10.x.x.x  range, i would expect
>> that users get an IP in this range from the server.
>> However, some users misconfigurations set the remoteip to a 192.x.x IP given
>> by the user. So my ip-up and ip-down scripts on the server gets called with a
>> user given, wrong, 192.x.x. IP, and not the server provided 10.x.x.x
>> Should a user be allowed to do this
> That's up to you. See "ipcp-accept-remote" in 'man pppd'.
>
>> or is this a bug? If yes, can i block
>> users from providing their own IPs?
>> As the ip-up and ip-down scripts set per-user firewall rules, it is quite a
>> security issue if a user has the possibility to provide an IP of his choice,
>> rather than the IP that is given to him by the server.
>>
>> Thanks in advance
>>
>> Lars
>>
>>
>>
>> cat /etc/pptpd.conf :
>> option /etc/ppp/options.pptpd
>> connections 200
>> noipparam
>> localip 10.14.15.1
>> remoteip 10.14.15.2-255
>>
>> cat /etc/ppp/options.pptpd:
>> mtu 1450
>> mru 1450
>> receive-all
>> defaultroute
>> default-mru
>> ktune
>> name pptpd
>> refuse-pap
>> refuse-chap
>> refuse-mschap
>> require-mschap-v2
>> require-mppe-128
>> ms-dns 192.162.102.50
>> ms-dns 115.187.74.91
>> proxyarp
>> lock
>> nobsdcomp
>>    novj
>> novjccomp
>> nologfd
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>


  parent reply	other threads:[~2013-09-29 12:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-29 10:08 Wrong remote IP, bug or feature? Lars Mueller
2013-09-29 12:31 ` Charlie Brady
2013-09-29 12:55 ` Lars Mueller [this message]
2013-09-29 22:07 ` James Carlson
2013-09-29 22:07 ` James Carlson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5248233B.30001@perfect-privacy.com \
    --to=admin@perfect-privacy.com \
    --cc=linux-ppp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).