LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-02-2004, 10:42 AM   #1
red.lego.man
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
sendmail and forwarded ports question


I have setup a small network at home, and I have an old dell laptop, running fedora 1, acting as a firewall/router to my ADSL connection. I have a much better desktop pc running fedora 2 which is also acting as my smtp server.

I have forwarded tcp/udp on port 25 from the dell to the fedora2 box.

Now I have an open relay because sendmail on the fedora2 sees the mail as coming from the dell box, not from the original host.

When I use the same sendmail config on the dell box without forwarding the ports, the dell box does NOT act as a relay.

How can I get the firewall to forward packets without them appearing to come from the dell machine but actually come from the originating spammer, and reject relaying?

Thanks
Andy
 
Old 08-02-2004, 03:25 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Have a look at your masquerading/SNAT rule and make sure it only specifies the one eth connection outward to your ISP, eg
iptables -t nat -o eth1 -j MASQUERADE
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
quick question about ports jp-lack Slackware 6 07-09-2005 10:23 PM
Privileged ports can only be forwarded by root??? sovietpower Linux - Networking 1 03-10-2005 06:45 AM
iptables question about ports XPediTioN Slackware 13 08-10-2004 07:09 PM
sendmail and ports question Robert0380 Linux - Networking 1 06-06-2003 07:29 PM
a question of ports? Ricardo77uk Linux - Networking 2 08-01-2001 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration