473,609 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fortigate PPTP default gateway configuration

1 New Member
Hi guys,

I have a fortigate 40C running with a PPTP configuration. My VPN works partly. I can connect to the office network, however I can't get the default gateway working. Can anyone help me with figuring out whats wrong with this configuration, please?

Expand|Select|Wrap|Line Numbers
  1. <pre><code>
  2. config firewall address
  3.        edit "all"
  4.        next
  5.        edit "Internal_Range"
  6.            set subnet 192.168.6.0 255.255.255.0
  7.        next
  8.        edit "PPTP"
  9.            set associated-interface "wan1"
  10.            set type iprange
  11.            set end-ip 192.168.6.180
  12.            set start-ip 192.168.6.160
  13.        next
  14.    end
  15.     config firewall policy
  16.         edit 1
  17.             set srcintf "internal"
  18.             set dstintf "wan1"
  19.             set srcaddr "all"
  20.             set dstaddr "all"
  21.             set action accept
  22.             set schedule "always"
  23.             set service "ANY"
  24.             set nat enable
  25.         next
  26.         edit 50
  27.             set srcintf "wan1"
  28.             set dstintf "internal"
  29.             set srcaddr "PPTP"
  30.             set dstaddr "all"
  31.             set action accept
  32.             set schedule "always"
  33.             set service "ANY"
  34.         next
  35.         edit 4
  36.             set srcintf "wan1"
  37.             set dstintf "wan1"
  38.             set srcaddr "PPTP"
  39.             set dstaddr "all"
  40.             set action accept
  41.             set schedule "always"
  42.             set service "ANY"
  43.             set nat enable
  44.         next
  45.     end
  46.     config vpn pptp
  47.         set status enable
  48.         set eip 192.168.6.180
  49.         set sip 192.168.6.160
  50.         set usrgrp "Wizard_users"
  51.     end
  52.     config system dhcp server
  53.         edit 1
  54.             set default-gateway 192.168.6.1
  55.             set domain "lan"
  56.             set interface "internal"
  57.             config ip-range
  58.                 edit 1
  59.                     set end-ip 192.168.6.159
  60.                     set start-ip 192.168.6.100
  61.                 next
  62.             end
  63.             set lease-time 345600
  64.             set netmask 255.255.255.0
  65.             set dns-server1 192.168.6.1
  66.         next
  67.     end
  68.     config system interface
  69.     edit "wan1"
  70.         set vdom "root"
  71.         set mode pppoe
  72.         set allowaccess ping
  73.         set type physical
  74.         set alias "FTTB Fixed IP"
  75.         set username "X@X"
  76.         set password ENC X
  77.         set defaultgw enable
  78.         set dns-server-override disable
  79.     next
  80.     edit "modem"
  81.         set vdom "root"
  82.         set mode pppoe
  83.         set type physical
  84.     next
  85.     edit "ssl.root"
  86.         set vdom "root"
  87.         set type tunnel
  88.     next
  89.     edit "internal"
  90.         set vdom "root"
  91.         set ip 192.168.6.1 255.255.255.0
  92.         set allowaccess ping https ssh
  93.         set type physical
  94.         set alias "LAN"
  95.     next
  96. end
  97. </code></pre>
The internal IP range is 192.168.6.0/24. The Fortigate has the IP 192.168.6.1 and is also the DNS Server. The VPN range is 192.168.6.160-18
Jan 2 '14 #1
0 2391

Sign in to post your reply or Sign up for a free account.

Similar topics

0
3880
by: Alan Franklin | last post by:
I'm bouncing off of "out-of-memory" errors using current release of eclipse. OK, so I've ferreted around and found that I have to pass special arguments to the JVM to get it to use more that a 64Mb heap. I poked around to discover that this pokes a line into a .launch file, which for my case, is shown below. <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms512m -Xmx1536m"/>
2
5251
by: Nijazi Halimaji | last post by:
Hi In VB6 i changed the IP-Adress and Gateway of the computer by using API. Is there an object available in .net for doing this? Thanks alot Nijazi Halimaji
0
1315
by: jonhrs | last post by:
Hi, I am trying to find/write some vb.net code which will attain the default gateway of a server. This app will access a cross section of server platforms from NT4.0 server to Windows 2003 and check that they are using the correct time source (which in most cases, is the DG, except in our datacentres!) Unfortunately, I am unable to do this using WMI due to the NT 4.0 servers (there are over 1500 Windows servers in the estate my team
0
1288
by: J | last post by:
Hi, Is there a simple method to attain the default gateway on a server with VB.net without using WMI? Bearing in mind that the servers the application will be run on will have different makes of NIC and hardware and OS platforms? Many thanks, Jon
0
1803
by: pmclinn | last post by:
How do you grab a users default gateway? Connection-specific DNS Suffix . : ksde.local IP Address. . . . . . . . . . . . : 10.117.161.108 Subnet Mask . . . . . . . . . . . : 255.255.248.0 Default Gateway . . . . . . . . . : 10.117.160.254
8
4350
by: google_groups3 | last post by:
Below is a snippet of code I am using. I want to set the IP, subnet and default gateway of my local computer via code. However, when I do it, I get a "not found" (error number 5) error on the default gateway line. Dim GateArray() As String = {"99.99.99.1"} 'Array Dim inPar As ManagementBaseObject = Nothing Dim outPar As ManagementBaseObject = Nothing Dim blah As ManagementBaseObject()
4
4695
by: mitymouse | last post by:
I am fairly familiar with scripting dos commands and that's about it. I remember some syntax and whatnot from a few programming classes I've taken but I don't remember any of the modules or functions for VB at all. Goal: I need to set persistent routes for 2 ip address on a VPN that has a dynamic gateway each time it connects. I am almost positive I can't script this with standard dos commands so I am wondering if VB will let me do this...
0
1399
by: siddhartha92k | last post by:
sir , i know very well that how can we give ip address & dns address to a syatem . but i want to know how can we give default gateway by a command in windows xp. please tell me.
6
3086
by: JOHNSHELL08 | last post by:
sir please tell me how can we give default gateway through command thanks.......
0
1123
by: palvani | last post by:
Can Request.ServerVariables("REMOTE_ADDR") fail and catch the address of my default gateway in my local network??
0
8535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8220
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8404
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5509
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4017
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4080
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2530
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1386
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.