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 11-16-2009, 02:23 PM   #16
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92

Log into it and check, may be it is not necessary, I don't know. It has to have a web interface with settings.
 
Old 11-16-2009, 02:41 PM   #17
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by nimnull22 View Post
Log into it and check, may be it is not necessary, I don't know. It has to have a web interface with settings.
OK I'm going to try it!
 
Old 11-17-2009, 01:13 AM   #18
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
I was entered int ADSL modem through web application, but this modem's default setting is to accept all packets through in both directions. After that I added iptables commands:

Code:
iptables -A FORWARD -i eth0 -o eth1 --sport 80 --dport 80 -j ACCEPT
For this command I get error:
unknow arg '--sport'
unknow arg '--dport'



Do you have any other ideas?
 
Old 11-17-2009, 09:50 AM   #19
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Ok, may be it is my mistake.

Try to use you command, but

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination 5.2.2.231
 
  


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
Problems with port forwarding impulse() Linux - Networking 10 05-20-2006 02:26 PM
iptables port forwarding problems JCdude2525 Linux - Networking 18 02-09-2005 04:25 PM
NAT Port forwarding problems! nidputerguy Linux - Networking 4 01-31-2004 10:29 AM
Problems with port forwarding MS3FGX Linux - Networking 4 01-27-2004 03:22 PM
port forwarding problems robiewp Linux - Networking 43 10-21-2003 09:08 AM

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

All times are GMT -5. The time now is 02:06 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