LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2010, 03:25 PM   #1
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Rep: Reputation: 17
outgoing Port forwarding wrt54gs


Hello all!

How would one forward a specific outgoing port to a local computer?

E.G.
Router: 192.168.1.1
Comp 1: 192.168.1.100
Comp 2: 192.168.1.200

When Comp 1 tries to browse to an internet page, forward that connection via the router to comp 2 to display a custom webpage. Using WRT54GS
 
Old 02-22-2010, 04:21 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
The default firmware for the wrt54gs doesn't support that kind of forwarding if memory serves me (I've had cfw on mine for so long it's fuzzy.) If you install dd-wrt or openwrt you can manually set if you're willing to get into the guts.
 
Old 02-22-2010, 05:55 PM   #3
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Original Poster
Rep: Reputation: 17
Well how can I do this. I have a lab setup with this very configuration and I'm experimenting with Client-Side-Attacks. Assuming Comp 1 is running the Attack, what would be the most efficient way to force comp 2 to connect to comp 1 on the specified port? And if this seems out of forum rules, please forgive me. It's all for the sake of learning and there are no intentions to implement this against another party.
 
Old 02-24-2010, 09:15 AM   #4
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
You can't get there from here... at least not with the default firmware on the Linksys.
You might google transparent proxy and iptables and see what that throws up. You would need to use something other than the Linksys though.
 
Old 02-24-2010, 10:48 AM   #5
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Original Poster
Rep: Reputation: 17
Yea I know linksys isn't the best for the job, but I'm trying to emulate a standard american home in my lab as much as possible. So I guess this experiment is a failure. Thanks!
 
Old 02-24-2010, 04:37 PM   #6
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Ok, I can think of one possibility, connect computer 2 to the WAN port and set it up as a proxy/gateway with a second n/w port connected to the internet.

Failing that, flash the Linksys with DD-WRT.
 
1 members found this post helpful.
Old 02-24-2010, 05:00 PM   #7
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Original Poster
Rep: Reputation: 17
Just an Idea....would this work?

|---Victim Comp.
|---Victim Router(WRT54GS-standard firmware)
Internet
|---Attacker's Router (WRT54GS-DD-WRT)
|---Attackers Comp
(Apache Server Running)
(Fast Track Mass Client Side)

If one were to set the Domain Name on the Victim Router to the IP address of the Attackers Router, then forward all incoming ports to port 80 on the Attackers comp, and at the same time have Apache running with the default page being a "Internet Temporarily Down" Error page. Couldn't The attacker essentially force the Victim to connect to them for the attack?

I'm probably wrong but hey, Einstein was considered insane occasionally too!
 
  


Reply



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
Shorewall: port forwarding problem, port is closed even after forwarding Synt4x_3rr0r Linux - Networking 2 12-13-2009 04:36 PM
[SOLVED] port forwarding does not work with linksys WRT54GS wireless router debian testing mf93 Linux - Networking 14 11-14-2009 07:20 PM
port forwarding on Belkin 4-port Cable/DSL Gateway Router sycamorex Linux - Networking 5 03-05-2007 03:27 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:57 PM.

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
Open Source Consulting | Domain Registration