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.
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.

Postby thecooldude » Wed Feb 14, 2007 4:44 am

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.

Postby nomankhn » Wed Feb 14, 2007 11:19 am

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.

Postby kbukhari » Wed Feb 14, 2007 12:46 pm

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:

Postby LinuxFreaK » Wed Feb 14, 2007 1:12 pm

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!

Postby thecooldude » Thu Feb 15, 2007 9:01 pm

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:

Postby LinuxFreaK » Sat Feb 17, 2007 10:12 am

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.

Postby thecooldude » Mon Feb 19, 2007 1:46 am

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


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest