Quite easy to do stuff on Specific IP.

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Post Reply
thecooldude
Lance Naik
Posts: 43
Joined: Sun Nov 26, 2006 6:04 pm
Location: Dubai, UAE.
Contact:

Quite easy to do stuff on Specific IP.

Post by thecooldude »

iptables -A INPUT -p tcp -s 192.168.2.3 -j REJECT --reject-with tcp-reset

But! user can ofcourse change the ip as well. Even I remember you/we're talking about MAC o.O

Thanks
..

Regards,
Khurram Nawaz.
0300-4141791.
nomankhn
Colonel
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Re: Quite easy to do stuff on Specific IP.

Post by nomankhn »

thecooldude wrote:iptables -A INPUT -p tcp -s 192.168.2.3 -j REJECT --reject-with tcp-reset

But! user can ofcourse change the ip as well. Even I remember you/we're talking about MAC o.O

Thanks
..

Regards,
Khurram Nawaz.
0300-4141791.
Dear

check this command

#iptables -m mac -h ( if this command will show u the mac option then use that command)

Regards
Noman Liaquat Khanzada Rajput
Linux means productivity and fun.
We all love Linux, but it's also a fact that some people might not be able to migrate.
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Re: Quite easy to do stuff on Specific IP.

Post by kbukhari »

thecooldude wrote:iptables -A INPUT -p tcp -s 192.168.2.3 -j REJECT --reject-with tcp-reset

But! user can ofcourse change the ip as well. Even I remember you/we're talking about MAC o.O

Thanks
..

Regards,
Khurram Nawaz.
0300-4141791.
if you think your users can change thier mac address then in that case user authentication is the Good choice
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear thecooldude,
Salam,

FYI, http://www.linuxpakistan.net/forum2x/vi ... php?t=2182

Best Regards.
Farrukh Ahmed
thecooldude
Lance Naik
Posts: 43
Joined: Sun Nov 26, 2006 6:04 pm
Location: Dubai, UAE.
Contact:

Thanks, but I already knew!

Post by thecooldude »

Thanks guys!

But I already knew, I just posted replies on user's Questions and that's all :)

Ah! Farukh nice script bud! but a drawback. Put a NAT box, and use as much as PC's you want :)

Thanks

..

Regards,

Khurram Nawaz.
+92-300-4141791
+92-42-5432259
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear thecooldude,
Salam,
thecooldude wrote:Ah! Farukh nice script bud! but a drawback. Put a NAT box, and use as much as PC's you want :)
This is possible even if you are using firewall. If you want to limit then limit maximum connections from per IP Address.

Best Regards.
Farrukh Ahmed
thecooldude
Lance Naik
Posts: 43
Joined: Sun Nov 26, 2006 6:04 pm
Location: Dubai, UAE.
Contact:

Dear Farukh.

Post by thecooldude »

This is possible even if you are using firewall. If you want to limit then limit maximum connections from per IP Address.

Hello,

Dude nice scripts by you no doubt!

But try AstroFlowGuard ;)

Would be helpful..

Thanks

..

Regards,

Khurram Nawaz.
+92-300-4141791
+92-42-5432259
Post Reply