LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2011, 08:22 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
Is it possible to open dyndns port at iptables?


Is it possible to open dyndns port at iptables?

I have a remote server which is cenots 5.5 x86 and uses iptable rules.
And my local pc is windows 7 x64 and have a dyndns address as mypc.dyndns.org.

I want to connect local pc with mypc.dyndns.org to remote server with iptable rules as follows.

Quote:
# Xmanager
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 6000:6010 -s mypc.dyndns.org -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 6000:6010 -s mypc.dyndns.org -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 7100 -s mypc.dyndns.org -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 7100 -s mypc.dyndns.org -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 177 -s mypc.dyndns.org -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 177 -s mypc.dyndns.org -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -s mypc.dyndns.org -j ACCEPT
But I could not connect remote server.

Please let me know how to make this iptables to connect bwtween local pc and remote server with iptables and dyndns.
 
Old 01-24-2011, 03:26 AM   #2
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Rep: Reputation: 167Reputation: 167
To report your IP to dyndns, you don't need to do anything with iptables, just

The dyndns update client software, just needs outgoing access, so no firewall configuration should be necessary.

You would, however, have to set up port forwarding from your router, and depending on your LAN setup, need to set up port forwarding rules with iptables in order to allow access to services running on your computer, such as 80 for http, 21 for ftp, 22 for ssh...

http://www.dyndns.com/support/kb/dyndns.html
Quote:
2. Configure port forwarding and firewalls

Now that your service is installed and running, the next step is to configure your network to allow remote access. To do this, you will need to configure your router's port forwarding settings. Please visit PortForward.com for a list of guides by router and service. (For reference, any service you can access with a web browser uses HTTP on TCP port 80). You will also need to allow this port in your firewall software, such as Windows Firewall or Norton Internet Security.
As for configuring iptables itself:
http://www.linuxquestions.org/questi...server-857876/

http://www.linuxquestions.org/questi...tables-858061/
 
Old 01-25-2011, 03:00 AM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
Andy Alkaline/ Thanks for kind reply.

I'll study, and hope this will solve my problem.
 
  


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
CentOS 5: iptables - cannot open port 80 and nat to port 8080 for Tomcat steve willett Linux - Networking 4 09-24-2010 04:03 AM
If I forward a port in iptables, does the port have to be open on the firewall? qwertyjjj Linux - Server 4 08-06-2009 09:22 AM
How to open a port without using iptables msteiner Linux - Networking 5 11-28-2007 02:23 PM
How to Open a Port in IPtables Doug Vitale Linux - Networking 4 10-14-2007 09:14 PM
Iptables - Port Won't Open stascrash Linux - Security 11 11-09-2006 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:17 AM.

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