Hi
I need some help on the following problem with Iptables. Can anybody provide me with some help.
Server Details
a) Our service provider provides us a catchall account & SMTP access. e.g. Server IP 10.10.10.10
b) We have a gateway firewall server with
squid running. e.g. Server IP 55.55.55.55 (Live IP)
c) We have a email server running behind the firewall. e.g Server IP 77.77.77.77
To Do
a) The email server should be able to send POP & SMTP requests to our email service providers server ie 10.10.10.10 via our gateway server
b) Users from internet should be able to access our internal email server i.e. 77.77.77.77 via our gateway server 55.55.55.55
Current Status
a) I feel the following iptable code running on our gateway server will allow users from internet to access our internal email server. Please advice if this is right. (Note : eth1 - External Network Card)
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth1 -p tcp --sport 80 -j DNAT --to 77.77.77.77:80
I need to do this urgently and would require your precious contribution.
Regards
Joel
9820533294
(022) 56346700
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com
Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now !
>
> Does anyone know of a Knoppix-like distro containing kernel 2.6?
>
If you want we can create it for you, you may contact me after a week and we can customize it for your needs. Contact me by mail if you are interested.
>
> ---------------------------------
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing
> --
> http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
Hi,
I need Complete Cygwin. I believe its over 1 GB.
Can someone help, probably someone from IITM ....
Thx in advance.
SANS
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
What is the status of the GNU/Linux cd library?
NewsForge: Getting Open Source Into Public Libraries
http://linuxtoday.com/infrastructure/2003121701026OSHLPB
An interesting idea. Why not put some cds in the college libraries.
R SYSTEMS is a leading global provider of information
technology solutions. Since it's founding in 1991, R
SYSTEMS has provided leading edge IT solutions to a
nice mix of Global 1000, mid-sized companies,
government and new economy business.
R Systems and its affiliates maintain four large
Centers for Software Excellence, one center in El
Dorado Hills, CA and the other three in India (Pune,
Chennai and Noida).
R Systems is a SEI CMM Level 5 company and has been
named in the Inc 500 fastest growing company list for
the last three consecutive years.
http://www.rsystems.com
We are looking for profiles in the skill sets mentioned below
for our Noida office.
Please send your resume to Parul.Mathur[AT]rsystems.com
with Subject Line of email in the format
"Job Application: <skill set> <yrs of experience>"
1> .Net Sr. Programmers/Team Leads
=====================================
Minimum 4 years in IT industry. One year of
programming experience in VB.Net, (developing Desktop
Application) with strong Database knowledge, and
Crystal reports.
2> Software Testers
====================
1- Hands on Application Testing on Unix with
Automated Tools experience.
2-- General testing experience on products like
switches, routers. Testing experience on network
security related product.
3> Java Programmers
====================
Must have programming experience in Core Java, Swings
(Desktop Java GUI Development), XML .Total experience
in IT should not be less than 4.5 years.
4> Java Programmers with Experience in Network
Management System
====================================
Must have programming experience in Core Java, VC++,
Must have programming experience in Core Java, SNMP
5> C # / ASP.Net Programmers/ Project Lead
==============================
Minimum 5 years of experience in the IT
industry. Must have at least one year of programming
experience in C# & ASP.Net
6> Quality Control -Finance :
==============================
Must have at least 2 years of experience in Testing
applications in Finance Domain, Experience in Manual
or Automated testing, Preferably having a Degree in
Commerce or Finance.
Hi!
This should solve the problem.
Save following lines as some_name.pl
Also mention file name in the file as mentioned.
#!/usr/bin/perl
open(vp,"myfile");
#myfile is the file in the same dir or u can specify full path here eg:
/home/my/myfile
foreach $names (<vp>){
#Th following lines by Devdas Bhagat
@names = split(' ',$names); #Split the line on whitespace
#and assign to the array @names
foreach (@names) { #For all values in the array
print "$_ " #Print the value followed by a single
# space
if ! /\@/; #Iff there was no '@' in it.
}
print "\n"; #Print a newline
}
Run the file as perl some_name.pl
You can redirect its output to file as
perl some_name.pl > names.txt
Regards
swanand
techieinfo.cjb.net
>Message: 4
>Date: Tue, 16 Dec 2003 15:06:56 +0530
>From: Devdas Bhagat <devdas(a)dvb.homelinux.org>
>Subject: Re: [ILUG-BOM] regexp query
>To: Devdas Bhagat <devdas(a)dvb.homelinux.org>, "GNU/Linux Users Group,
> Mumbai, India" <linuxers(a)mm.ilug-bom.org.in>
>Message-ID: <20031216150656.A2895(a)evita.devdas.geek>
>Content-Type: text/plain; charset=us-ascii
>
>On 11/12/03 09:52 +0530, Devdas Bhagat wrote:
> > On 10/12/03 18:00 +0530, Dr. Sharukh K. R. Pavri. wrote:
> > > I have a text file in the format
> > >
> > > Full name email@ddress
> > perl -e 'while(<>) { @names = split /\s+/; foreach (@names) { print "$_
>" if ! /\@/)}; print "\n" } ' < file.
>Replying to myself:
>
>The above one liner is equivalent to:
>#!/usr/bin/perl
>
>while (<STDIN>) { #read one line from standard input
> @names = split /\s+/; #Split the line on whitespace
> #and assign to the array @names
>
> foreach (@names) { #For all values in the array
> print "$_ " #Print the value followed by a single
> # space
> if ! /\@/; #Iff there was no '@' in it.
> }
> print "\n"; #Print a newline
>}
>
>I redirect standard input from the file 'file' via the shell operator <.
>
>Devdas Bhagat
>
>
_________________________________________________________________
Worried about inbox overload? Get MSN Extra Storage now!
http://join.msn.com/?PAGE=features/es
2
1
by Sameer D. Sahasrabuddhe
17 Dec '03
17 Dec '03
Cc:
Bcc:
Subject: Re: [ILUG-BOM] regexp query
Reply-To:
In-Reply-To: <20031216021109.A23597(a)evita.devdas.geek>
On Tue, Dec 16, 2003 at 02:11:09AM +0530, Devdas Bhagat wrote:
> On 15/12/03 22:59 +0530, Dr. Sharukh K. R. Pavri. wrote:
> >
> > That gives
> > ----------------
> > syntax error at -e line 1, near "/\@/)"
> > Execution of -e aborted due to compilation errors.
> The whole command is a single line. I tested it before posting.
I suppose Perl would be the best tool for doing this particular job. I
would suggest that Dr. Pavri should read up on the regex operators in
Perl, and understand what Devdas's code snippet is trying to do, so
that he can himself figure out what's wrong!
Sameer.
PS: Interesting to see the names "Sharukh" and "Devdas" in the same
message! ;)
--
Research Scholar, KReSIT, IIT Bombay
http://www.it.iitb.ac.in/~sameerds/
Hi,
Dunno how many are avid PHP enthusiasts in here, nev= ertheless i
thought i should point you folks to an interesting article that= i
read this evening on 'Session Security in PHP'. The article is
actually = the cover story of the first issue of PHP Magazine (Digital
Issue), which i= s available for free download here:
https://www.entwickler.com/ssl/phppdf/<= BR>
Further, the author Chris Shiflett who wrote the cover story, = has
been kind enough to accept submissions from people who think they have
= a good implementation for securing sessions. In exchange, he will
(hopefull= y) be able to reply to each person with a review of their
implementation. I= f you are interested, then rush your secure(?) PHP
implementation to Chris = (http://www.php-mag.net)
Thanks,
-Mid
[1] [adstream_nx.c=]
References
1. 3D"http://clients.rediff.com/signature/t
Dear Linuxers,
I have been working hard on building my own RedHat
Linux based distro.....
I have made a kickstart file using
redhat-config-kickstart and saved the file @
ROOTBUILD/ dir and isolinux/ Dir.....
While testing anaconda --test method=nfs ...e.tc. The
custom kickstart installation does not begin but I do
see the changes in all the RedHat logos...e.t.c
Does that mean I cannot test the kickstart using
anaconda --tes method=nfs ...command or am I making a
mistake...in placing the kickstart file.
My first attempt at making a bootable disc failed
.....
Please help..
bye Rgds
bijucyborg
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree