Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

iptables and ip addresses

0 views
Skip to first unread message

Alex

unread,
Feb 10, 2003, 1:14:28 PM2/10/03
to
I'm using iptables with Linux Redhat 7.3. I have an internal LAN
which is connected to a Linux Nat, and that NAT is utilizing iptables.
Is there anyway with iptables that I can change my ipaddress from the
net coming out of eth0 just like i'm doing with my internal lan? For
example, in my internal lan there's private ip addresses and they are
getting masked on their way out. Now I want to do the same thing from
eth0. Change my ip address everytime i need to access the internet or
make a connection to telnet, etc. If anyone has answers, please
respond. If you don't understand, let me know. Take care

Alex

Alex

unread,
Feb 24, 2003, 2:17:44 PM2/24/03
to
Anyone know how to do this? To put it in simpler terms I'm trying to
spoof my ip address using iptables, I don't know if that is possible?
alexan...@email.com (Alex) wrote in message news:<e80bd497.03021...@posting.google.com>...

jo...@onevista.com

unread,
Feb 24, 2003, 8:50:49 PM2/24/03
to
In article <e80bd497.0302...@posting.google.com>,

Yes you can change your outgoing IP address to anything you like. Did
you expect responses or are you just spamming people? TCP with a bogus
address will not work, UDP may. If you have to ask how to do this you
probably won't be able to get it to work.

Alex

unread,
Feb 27, 2003, 2:46:02 PM2/27/03
to
I need to know which rules i can use to accomplish this in iptables.
This way when i connect to another telnet server they won't know my ip
because it's spoofed.

jo...@onevista.com wrote in message news:<HAuD4...@flash.onevista.com>...

jo...@onevista.com

unread,
Feb 28, 2003, 8:27:44 PM2/28/03
to
In article <e80bd497.03022...@posting.google.com>,

Alex <alexan...@email.com> wrote:
>I need to know which rules i can use to accomplish this in iptables.
>This way when i connect to another telnet server they won't know my ip
>because it's spoofed.
>
So, you want to 'spoof' your IP address. That is, having IPaddr a.b.c.d, you
wish to connect to some site and tell them your address is w.x.y.z
When they reply to your message, thinking you are w.x.y.z, but are really
a.b.c.d, how do you expect to get their message?

Oh, how do you change your outgoing IPaddr using iptables? Well, you add to
the source for iptables and rebuild. Should only be a couple of lines.

johna

PS. How do you think the telnet site knows where to send responses to your
packets?

0 new messages