DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2 Weeks Ago
notooth notooth is offline
Fdisk Soldier
 
Join Date: Jul 2015
Posts: 51
Question Web Server responds very slow on WAN

Hello everyone,

My web server responds quickly when I access it via LAN IP address, but it responds very slow via WAN IP address. I think I configured something wrong with the network. Here is what I did to set it up:
Code:
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        priority: 0
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
re0: flags=18843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,MPSAFE> mtu 1500
        lladdr 3c:07:71:61:4b:02
        priority: 0
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 192.168.100.200 netmask 0xffffff00 broadcast 192.168.100.255
enc0: flags=0<>
        priority: 0
        groups: enc
        status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33144
        priority: 0
        groups: pflog

$ sudo nano  /etc/hostname.re0
inet 192.168.100.200 255.255.255.0 NONE

$ sudo nano /etc/mygate
192.168.100.1

$ sudo nano /etc/myname
www.xxxxxxx.com

$ sudo sh /etc/netstart
Can anyone let me know what I did wrong?
Reply With Quote
  #2   (View Single Post)  
Old 2 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,066
Default

There's not enough information posted for me to answer your question. Here's all I can see:
  • Your OS is configured only with a private address at 192.168.100.200.
  • Any connections from the Internet must transit your NAT router at 192.168.100.1.
I could make guesses. But guesses only. My best guess would be some sort of reflection issue in how your router redirects, and that assumes that your "WAN" tests are being performed from inside your network, rather than tests from outside your network.

If your router at 192.168.100.1 is an OpenBSD system, then this link may help:

http://www.openbsd.org/faq/pf/rdr.html#reflect
Reply With Quote
  #3   (View Single Post)  
Old 2 Weeks Ago
notooth notooth is offline
Fdisk Soldier
 
Join Date: Jul 2015
Posts: 51
Default

You were right. My WAN tests were being performed from inside my network. I did not know that was a possible cause of slow response of WAN test. So there should be no problem if someone accesses my server from outside of the network, should it? My router at 192.168.100.1 is a Huawei product provided by my ISP. If I configure my OS with a public address, does it improve the performance?
Reply With Quote
  #4   (View Single Post)  
Old 2 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,066
Default

Network Address Translation ("NAT") -- by itself -- does not have a performance impact. Whatever is causing your particular problem is likely to be ancillary to NAT.

Unfortunately, there is not enough information here for me to point at anything and state, "Root cause."

Last edited by jggimi; 2 Weeks Ago at 02:31 AM. Reason: typo
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome is very slow jjstorm OpenBSD Packages and Ports 26 23rd March 2016 05:23 PM
über-slow Internet DaBSD NetBSD General 12 12th April 2015 11:15 AM
Slow SSH login flit OpenBSD General 3 16th May 2013 08:29 PM
Why is FreeBSD dd so slow? sharris FreeBSD General 10 18th June 2010 08:33 AM
slow io from hdd knasbas OpenBSD General 3 25th July 2009 02:51 AM


All times are GMT. The time now is 11:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick