LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-18-2012, 03:52 PM   #16
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217

does the router has any option to save/restart it ?
 
Old 04-18-2012, 04:04 PM   #17
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by lithos View Post
does the router has any option to save/restart it ?
Yes, saved+restarted it lots of times..
 
Old 04-18-2012, 04:10 PM   #18
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
i also port forward and enabled ports through fedora firewall:

here is an image of my firewall http://imageshack.us/photo/my-images...120418220.png/

Last edited by nibraz; 04-18-2012 at 08:08 PM.
 
Old 04-19-2012, 01:37 AM   #19
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
why are you forwarding ports on your server ? You should let this server, if it is meant to be server, let it "serve" the HTTP not routing TCP/IP somewhere else ?!
 
Old 04-19-2012, 10:18 AM   #20
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by lithos View Post
why are you forwarding ports on your server ? You should let this server, if it is meant to be server, let it "serve" the HTTP not routing TCP/IP somewhere else ?!
The fedora firewall was already installed when I did a fresh fedora 16 install. Before I couldnt access my website from other computers through my internal ip, e.g. when I type 192.168.1.100 I would always get a timeout page. Since forwarding ports through fedora firewall I can access my website through any computers that is connected to my LAN through my internal ip address.

In my routers config page, there is an option enabled "VPN Pass-Through", PPTP is enabled and IPSec is enabled. Should that be enabled? I know for a fact my server settings are fine(checked dns settings through intodns.com and everything was a success.), something is wrong with my shitty dlink router :/

Last edited by nibraz; 04-19-2012 at 10:20 AM.
 
Old 04-19-2012, 01:38 PM   #21
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

I could not get it how is your LAN network arranged,
is it
1.
Code:
internet
  |
router ----------------------------------------
  |                           \                \
your fedora firewall       your server     other computers
or
2.
Code:
internet
  |
router ----------------------------------
  |                           \          \
fedora server &firewall       other computers
 
Old 04-19-2012, 07:40 PM   #22
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by lithos View Post

2.
Code:
internet
  |
router ----------------------------------
  |                           \          \
fedora server &firewall       other computers
Its like that..
 
Old 04-20-2012, 02:10 AM   #23
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
great, so your server is also a firewall,

can you temporarily shut down IPTABLES and try everything if it's working.
And check then your running services, which ports are used if you check:
# netstat -tapln

Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      3152/named          
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      1917/vsftpd         
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      3152/named          
tcp        0      0 :::80                   :::*                    LISTEN      1931/httpd          
tcp        0      0 :::312                  :::*                    LISTEN      22569/sshd          
tcp        0      0 ::1:953                 :::*                    LISTEN      3152/named
 
1 members found this post helpful.
Old 04-20-2012, 11:12 AM   #24
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by lithos View Post
great, so your server is also a firewall,

can you temporarily shut down IPTABLES and try everything if it's working.
And check then your running services, which ports are used if you check:
# netstat -tapln

Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      3152/named          
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      1917/vsftpd         
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      3152/named          
tcp        0      0 :::80                   :::*                    LISTEN      1931/httpd          
tcp        0      0 :::312                  :::*                    LISTEN      22569/sshd          
tcp        0      0 ::1:953                 :::*                    LISTEN      3152/named
Ok I stopped iptables and its still going to my routers config page, and this is what I got after typing netstat -tapln:
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      1861/master         
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LISTEN      1138/named          
tcp        0      0 127.0.0.1:10024             0.0.0.0:*                   LISTEN      1754/amavisd (maste 
tcp        0      0 127.0.0.1:10025             0.0.0.0:*                   LISTEN      1861/master         
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      1367/mysqld         
tcp        0      0 0.0.0.0:41162               0.0.0.0:*                   LISTEN      1163/rpc.statd      
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      1125/rpcbind        
tcp        0      0 192.168.1.100:53            0.0.0.0:*                   LISTEN      1138/named          
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN      1138/named          
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      1137/pure-ftpd (SER 
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1122/sshd           
tcp        0      0 192.168.1.100:34703         173.194.41.153:80           ESTABLISHED 2940/firefox        
tcp        0      0 192.168.1.100:34705         173.194.41.153:80           ESTABLISHED 2940/firefox        
tcp        0      0 192.168.1.100:34079         173.194.41.131:80           ESTABLISHED 2940/firefox        
tcp        0      0 127.0.0.1:3306              127.0.0.1:52332             ESTABLISHED 1367/mysqld         
tcp        0      0 127.0.0.1:52332             127.0.0.1:3306              ESTABLISHED 2134/amavisd (ch1-a 
tcp       46      0 127.0.0.1:42624             127.0.0.1:10025             CLOSE_WAIT  2134/amavisd (ch1-a 
tcp        0      0 192.168.1.100:34706         173.194.41.153:80           ESTABLISHED 2940/firefox        
tcp        0      0 192.168.1.100:48494         209.85.147.147:80           TIME_WAIT   -                   
tcp        0      0 192.168.1.100:36871         209.85.147.94:80            ESTABLISHED 2940/firefox        
tcp        0      0 127.0.0.1:52478             127.0.0.1:3306              TIME_WAIT   -                   
tcp        0      0 127.0.0.1:52477             127.0.0.1:3306              TIME_WAIT   -                   
tcp        0      0 192.168.1.100:36874         209.85.147.94:80            TIME_WAIT   -                   
tcp        0      0 127.0.0.1:52483             127.0.0.1:3306              TIME_WAIT   -                   
tcp        0      0 192.168.1.100:58281         173.194.41.184:80           TIME_WAIT   -                   
tcp        0      0 127.0.0.1:52479             127.0.0.1:3306              TIME_WAIT   -                   
tcp        0      0 192.168.1.100:39224         209.85.147.138:80           TIME_WAIT   -                   
tcp        0      0 :::25                       :::*                        LISTEN      1861/master         
tcp        0      0 ::1:953                     :::*                        LISTEN      1138/named          
tcp        0      0 :::443                      :::*                        LISTEN      1326/httpd          
tcp        0      0 :::993                      :::*                        LISTEN      1779/couriertcpd    
tcp        0      0 :::995                      :::*                        LISTEN      1797/couriertcpd    
tcp        0      0 :::110                      :::*                        LISTEN      1788/couriertcpd    
tcp        0      0 :::60078                    :::*                        LISTEN      1163/rpc.statd      
tcp        0      0 :::143                      :::*                        LISTEN      1766/couriertcpd    
tcp        0      0 :::111                      :::*                        LISTEN      1125/rpcbind        
tcp        0      0 :::8080                     :::*                        LISTEN      1326/httpd          
tcp        0      0 :::80                       :::*                        LISTEN      1326/httpd          
tcp        0      0 :::8081                     :::*                        LISTEN      1326/httpd          
tcp        0      0 :::21                       :::*                        LISTEN      1137/pure-ftpd (SER 
tcp        0      0 :::22                       :::*                        LISTEN      1122/sshd

Last edited by nibraz; 04-20-2012 at 11:15 AM.
 
Old 04-20-2012, 11:48 AM   #25
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
great, now I'm lost

as it can be seen you have Apache / HTTP running:
Code:
tcp        0      0 :::8080                     :::*                        LISTEN      1326/httpd          
tcp        0      0 :::80                       :::*                        LISTEN      1326/httpd          
tcp        0      0 :::8081                     :::*                        LISTEN      1326/httpd
but why it doesn't open your web pages I don't know anymore.

Looks like your router could have problem with forwarding port 80 (http) to your server or your server Apache is misconfigured.

I'm sorry, but currently I'm out of clues.



Can someone here at LQ please help with something else to check or configure ?
 
1 members found this post helpful.
Old 04-20-2012, 12:09 PM   #26
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
Thanks for all your help & time lithos I really appreciate you taking your time to help me.

But I think the problem is the router, because when I had fedora 10 and my server was online and working I had a different router back then. I am pretty certain that my router is messed up. Can I ask that if I buy linksys wrt54g router, would that work with adsl? because I dont have cable, and I read in some forums you need to have a dsl modem and then connect that to linksys wrt54g. Would that be better or do you know any top quality routers for a web server handling large amount of traffic?
 
Old 04-20-2012, 01:32 PM   #27
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
well, I agree you need a DSL modem first to connect a router to it (I have it),

but for a high load (if you expect it) Vigor or Dlink is not a bad choice, also Linksys can cope with some amount of traffic (like 200 councurrent connections or maybe more - I don't recall any tests) with modified firmware from DD-WRT.
Maybe there is a possibility in your Dlink to reset to defaults and then set up just basic internet connection and port forward to see if anything changes.

If you can possibly get a hand on a piece of Linksys to test that would be great, even if you try with just some other brand router to see if it would work, then you can be sure to replace it.
I don't know how large you expect the traffic would be.

good luck for now.. I hope you will get it working.
 
1 members found this post helpful.
Old 05-28-2012, 03:46 PM   #28
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
was the router issue. now solved
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fresh Fedora 12 install--can't network coolingtower Linux - Networking 3 02-17-2010 07:32 AM
trouble with fresh install of Fedora 6 prashant11 Fedora - Installation 2 01-20-2007 08:49 PM
Fresh Fedora install and BIND Jamesk5 Fedora 2 02-05-2006 08:32 PM
azureus on a fresh fedora core 4 install true_atlantis Linux - Software 1 08-25-2005 09:34 PM
Fresh FC3 Install - Dual Boot Fedora Core 3 Workstation/Server Possible ? testguyct Fedora 1 03-15-2005 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration