Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th August 2007, 20:06
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
Exclamation i can't connect to my site after change of network device

I don't connect to internet with my netgear router anymore but with an ethernet modem alice-adsl pirelli.I get mail delivered regulary on my backend mail host .My lan is now so configured.
ethernet modem --- linuxbox --- switch --- mailbox e www box.
my iptables is:
Code:
IPT=/sbin/iptables
ARGO="`ifconfig ppp0 | grep inet | cut -d : -f 2 | cut -d \  -f 1`"
#ARGO is the hostname of my actual gateway box
IF0=ppp0
$IPT -t nat -A PREROUTING -p tcp -i $IF0 -d $ARGO --dport 80 -j DNAT --to $WWW:80
$IPT -t nat -A PREROUTING -p tcp -i $IF0 -d $ARGO --dport 443 -j DNAT --to $WWW:443
$IPT -A FORWARD -i $IF0 -o $IF1 -p tcp --dport 80 -d $WWW -j ACCEPT
$IPT -A FORWARD -i $IF0 -o $IF1 -p tcp --dport 443 -d $WWW -j ACCEPT
I don't understand why http doesn't go trough since mail gets delivered.
On the $WWW host this is the netstat:
Code:
tcp        0      0 192.168.1.4:80          0.0.0.0:*               LISTEN     2342/apache2
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN     2342/apache2
And this the iptables:
Code:
ACCEPT     tcp  --  0.0.0.0/0            192.168.1.4         state NEW tcp dpt:80
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:443
I'm testing with my laptop connected to dialup to connect to my site and i think it might be a matter of name resolution.I update to dyndyns.org my ip with ddclient configured to use as interface if=ppp0.All really look too strange my site is http://www.gabrix.ath.cx and is using mod-rewrite for http to https.I'm using pdnsd as local dns listening on all interfaces but still is not clear to me how to configure dns zones , if that's the problem !?
from my laptop pc if i do a
Code:
#host www.gabrix.ath.cx
it gives me an unknown host but
Code:
#host gabrix.ath.cx
gives me my actual dynamic ip.
Thanks !
__________________
http://www.gabrix.ath.cx

Last edited by gabrix; 18th August 2007 at 20:14.
Reply With Quote
Sponsored Links
  #2  
Old 18th August 2007, 20:33
gabrix gabrix is offline
Senior Member
 
Join Date: Sep 2006
Location: Napoli
Posts: 186
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to gabrix Send a message via Yahoo to gabrix Send a message via Skype™ to gabrix
 
Default

All sorted out guys all i had to do was to add to ddclient.conf the wildcard=yes directive so now if do
Quote:
root@argo:~# host www.gabrix.ath.cx
www.gabrix.ath.cx is an alias for gabrix.ath.cx.
gabrix.ath.cx has address 87.7.194.249
Right ??? Thanks anyway sometimes asking help to forums helps me to look in the right direction without anyone'else help !
__________________
http://www.gabrix.ath.cx
Reply With Quote
Reply

Bookmarks

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
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 16:33
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! qvindesland Installation/Configuration 22 21st May 2007 16:05
mail issue - can recieve but not send phillycode Installation/Configuration 2 24th March 2007 15:02
Email seemingly not working... Duplex Installation/Configuration 11 19th April 2006 14:48
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 11:30


All times are GMT +2. The time now is 17:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.