hello
i have been trying to add to 2 pptp vpn with no luck. the first one works just fine, however it seems i cant configure the other one. here is what i have done and how im trying to do in order to make the second one works
for the first one ( which works ):
1- added pptp client
2- added a bridge and then added ether2 interface to bridge1
3- added an address (ip–> address ) with these parameters–> address: 192.168.88.1/24 and network:192.168.88.0 and interface:ether2
4- added a dhcp ( ip —> dhcp server) with these parameters → interface:bridge1 , address pool: pool1
5- added a network ( ip → dhcp server → network ) with these parameters: address: 192.168.88.0/24 , gateway: 192.168.88.1 , dns server: 4.2.2.4 , 8.8.8.8
6- added a dns ( ip → dns → static ) with address set to:192.168.88.1
7- added a nat rule ( ip–> firewall → nat ) with these parameters → chain:srcnat , src adress:192.168.88.0/24, in.interface:bridge1 , out.interface:pptp1 , out.bridge port: bridge1, in.bridge port: bridge1 , action: masquerade
8- added a new mangle ( ip–>firewall → mangle ) with these parameters → chain: prerouting , src. address:192.168.88.0/24, in.interface:bridge1 , out.interface:bridge1 , out.bridge port: bridge1, in.bridge port: bridge1 , action: mark routing , new routing mark: vpn1 , pass through: checked
9- added a new pool named: pool with addresses:192.168.88.10-192.168.88.254
10- added a route with gateway:pptp1 , routing mark: vpn1 ,
everything works just fine and i have vpn enabled internet through port 2 of my router. i tried to add the second vpn, repeating the previous steps:
1- added second pptp client
2- added a bridge and then added wlan1 interface to bridge2
3- added an address (ip–> address ) with these parameters–> address: 192.168.77.1/24 and network:192.168.77.0 and interface:wlan1
4- added a dhcp ( ip —> dhcp server) with these parameters → interface:bridge2 , address pool: pool2
5- added a network ( ip → dhcp server → network ) with these parameters: address: 192.168.77.0/24 , gateway: 192.168.77.1 , dns server: 4.2.2.4 , 8.8.8.8
6- added a dns ( ip → dns → static ) with address set to:192.168.77.1
7- added a nat rule ( ip–> firewall → nat ) with these parameters → chain:srcnat , src adress:192.168.77.0/24, in.interface:bridge1bridge1( cant change to bridge 2, it gives me the error → ingoing interface matching not possible in output and postrouting chains) , out.interface:pptp2 , out.bridge port: bridge2, in.bridge port: bridge1 ( cant change to bridge2, it gives me the error → ingoing interface matching not possible in output and postrouting chains ) , action: masquerade
8- added a new mangle ( ip–>firewall → mangle ) with these parameters → chain: prerouting , src. address:192.168.77.0/24, in.interface:brige2 , out.interface:bridge1 (cant change to bridge 2 it gives me the error → outgoing interface matching not possible in input and prerouting chains ) , out.bridge port: bridge1 (cant change to bridge2 it gives me the error → physical outgoing interface matching not possible in input, prerouting and output chains ) , in.bridge port: bridge2 , action: mark routing , new routing mark: vpn2 , pass through: checked
9- added a new pool named: pool2 with addresses:192.168.77.10-192.168.77.254
10- added a route with gateway:pptp2 , routing mark: vpn2
now despite the fact that i cant change the value mentioned above, when i connect to the router via wireless i have 2 gateways : 192.168.0.10 ! and 192.168.77.1 and i cant connect to the internet. however i am able to connect to the router os using 192.168.77.1
any idea what i have done wrong and what needs to be done?
thx