Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems in Portforwarding SMTP to internal server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
stian@barmen.nu
n00b
n00b


Joined: 12 Jun 2002
Posts: 19

PostPosted: Fri Jul 05, 2002 2:56 pm    Post subject: Problems in Portforwarding SMTP to internal server Reply with quote

I use this command in my IP-tables script to forward the smtp port of an internal NAT'ed server to the external firewall. Here is the command:

iptables -t nat -A PREROUTING -i ${UPLINK} -p tcp --destination-port 25 -j DNAT --to 10.26.12.11:25

To forward ports like 80, 143 and others this works without a problem. There seems to be some strange problem with port 25 on the firewall. If I bind the service to port 26 on the firewall it works...! Ergo this command works:

iptables -t nat -A PREROUTING -i ${UPLINK} -p tcp --destination-port 26 -j DNAT --to 10.26.12.11:25

Any ideas why I cannot bind to port 25? I am not running any smtp service, just ssmtp wich does not utilize a smtp service.

Hope somenone can help! :)
_________________
Best regards
Stian B. Barmen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum