473,387 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Fortigate PPTP default gateway configuration

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 2375

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

Similar topics

0
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...
2
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
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...
0
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...
0
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...
8
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...
4
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...
0
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
by: JOHNSHELL08 | last post by:
sir please tell me how can we give default gateway through command thanks.......
0
by: palvani | last post by:
Can Request.ServerVariables("REMOTE_ADDR") fail and catch the address of my default gateway in my local network??
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.