Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Routing

Reply  
Thread Tools
Scully's Avatar
Member with 223 posts.
 
Join Date: Oct 2000
Location: WA, USA
15-May-2003, 05:18 PM #1
Question Routing
I'm trying to test an internal mail server. My production one is also inside the same firewall. I have two domains.
Mydomain.com
Mydomain.net
They both work fine.
My question is I would like the firewall to be able to route the incomming mail to the proper mail server.

For instance mail comming to
Mydomain.com would hit the firewall and the firewall would forward it to mail.Mydomain.com. If mail comming to mail.Mydomain.net hit the firewall it would rout it to its mail server.

My current rules work individually, meaning I can do one server but not the other. Heres what the single looks like.

#Forwarding related to mail:
iptables -A FORWARD -i $EXTIF -o $INTIF -p tcp -d $INTSMTP --dport 25 -j ACCEPT

#Forwarding incomming SMTP connections:
iptables -t nat -A PREROUTING -i $EXTIF -p tcp -d $EXTIP --dport 25 -j DNAT --to $INTSMTP:25

Any ideas?

Cheers,

Scully
__________________
Not all who wander are lost.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:13 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.