There are two types of elements of the user interface (tunnel) in the PPTP server configuration – users static and dynamic connections. An interface is set up for each tunnel, created to the specified Howto add SQUID Everything That You Should Know About [Part 1]” href=”http://www.bolozer.com/squid-proxy-on-rhel5centos-everything-that-you-should-know-about-part-1.html”>Proxy Server with MIKROTIK [Short Reference Guide]” href=”http://www.bolozer.com/howto-add-squid-proxy-server-with-mikrotik-short-reference-guide.html”>server. Static interfaces are administratively added if there is the need for specific name of the interface (in firewall rules or elsewhere) for that particular user created reference. Dynamic interfaces this list automatically add when getting a user is connected and no existing static entry corresponds to his or her user name (or is already active in the case of) how it can be referenced not two separate tunnel interface with the same name. Dynamic interfaces are displayed when a user is a connection, and disappear when the user disconnects, so it’s impossible to tunnel created, which in the router configuration (such as in firewall), so need create a consistent rules for this user to reference a static entry for it/you. Otherwise, it is safe to use dynamic configuration.
Here, two of us need Ethernet interface.
First, configure the Ethernet interface:
IP address [admin@PPPoE-Server] > add address=10.1.0.3/24 interface = local
IP address [admin@PPPoE-Server] > print
Flags: I – X – D – dynamic, disabled invalid,
# ADDRESS NETWORK BROADCAST INTERFACE
0 10.1.0.3/24 10.1.0.0 10.1.0.255 Local
IP address [admin@PPPoE-Server] > / IP route
[admin@PPPoE-Server] IP route > add gateway = 10.1.0.1
[admin@PPPoE-Server] IP route > print
Flags: X – disabled, a – active, D – dynamic,
C connection, S – static, R – RIP, OSPF – BGP, o-, m – Mme,.
B unreachable, prohibit Blackhole, U – P-
# DST ADDRESS ADAM SRC G DISTANCE GATEWAY INTERFACE
0 ADC 10.1.0.0/24 10.1.0.3 0 local
1 A S 0.0.0.0 / 0 R 10.1.0.1 1 local
[admin@PPPoE-Server] IP route > / Ethernet interface
[admin@PPPoE-Server] Interface Ethernet > set local ARP = proxy-ARP
[admin@PPPoE-Server] Interface Ethernet > print
Flags: X – disabled, R – design
# NAME MTU ARP MAC-ADDRESS
0 R of local 1500 00: 0 c 42: 03: 25: 53 proxy-ARP
[admin@PPPoE-Server] Interface Ethernet >
Then you add the PPPoE Server – CentOS 6.2 x86_64 With Apache2 [ISPConfig 3]” href=”http://www.bolozer.com/the-perfect-server-centos-6-2-x86_64-with-apache2-ispconfig-3.html”>server to the other Ethernet interface:
[admin@PPPoE-Server] Interface PPPoE server Server> add interface = local.
Service-name = MT one session per host = Yes disabled = no
[admin@PPPoE-Server] Interface PPPoE server Server> print
Flags: X – disabled
Service-name “Mt” = 0 interface = local Max MTU = 1480 Max MRU = 1480 Mrru = disabled
Authentication = PAP, chap, mschap1, mschap2 keep-alive timeout = 10
a session per host Yes Max sessions = 0 = default = default
[admin@PPPoE-Server] Interface PPPoE server Server>
Then we can set up PPPoE clients:
[admin@PPPoE-Server] IP address pool > add name = PPPoE ranges = 10.1.0.100-10.1.0.200
[admin@PPPoE-Server] IP address pool > print
# NAME AREAS
0 PPPoE -10.1.0.100-10.1.0.200
[admin@PPPoE-Server] IP address pool > / ppp profile
[admin@PPPoE-Server] PPP profile > set default encryption by using = Yes local address = 10.1.0.3 remote address = PPPoE
[admin@PPPoE-Server] PPP profile > print
Flags: * standard
0 * Name = “Default”-local address = 10.1.0.3 remote address = PPPoE
Use compression = no use vj compression = no encryption use = Yes only one = no
Changing TCP mss = Yes
1 * Name = “Standard encryption” use compression = standard
Use use vj compression = standard encryption = Yes only one = standard
Changing TCP mss = default
[admin@PPPoE-Server] PPP profile >… Secret
[admin@PPPoE-Server] PPP secret > add name = password test1 = pass1 = service PPPoE
[admin@PPPoE-Server] PPP secret > add name = test2 password = pass2 = service PPPoE
[admin@PPPoE-Server] PPP secret > print
Flags: X – disabled
# NAME SERVICE CALLER ID PASSWORD PROFILE REMOTE ADDRESS
0 test1 PPPoE pass1 default 0.0.0.0
1 test2 PPPoE pass2 default 0.0.0.0
[admin@PPPoE-Server] PPP mystery >
We have completed the configuration and add two users: test1 and test2, connect to the Internet with PPPoE client software can.
Note that integrated Windows XP client supports but not encryption, RASPPPOE. So, if it is planned to Windows clients that is older than Windows XP support, recommended not to encryption require. In other cases, the server clients will accept which does not encrypt data.
Reference:
MikroTik document.
Comments
Powered by Facebook Comments