My router has UPnP, as do its work with ubuntu to automatically open ports


 
Thread Tools Search this Thread
Special Forums IP Networking My router has UPnP, as do its work with ubuntu to automatically open ports
# 1  
Old 01-01-2011
My router has UPnP, as do its work with ubuntu to automatically open ports

My router has UPnP,how to make it work with ubuntu to automatically open ports

I try to open the following command " /sbin/iptables -I INPUT -d 0/0 -s 0/0 -p tcp --dport 21 -j ACCEPT" ,local only opens ,if i put the ip 192.168.1.68, it works correctly, if i`m put my external ip does not work,I have to go in the router every time and opens ports.
My question is, how to make ubuntu automatically open ports

My router is thomson tg585v7
# 2  
Old 01-02-2011
Moderator's Comments:
Mod Comment Thread moved to networking forum.
This User Gave Thanks to Neo For This Post:
# 3  
Old 01-03-2011
Anyone?Smilie
# 4  
Old 01-06-2011
No one Knows?
So badSmilie
I'm disappointed:P
# 5  
Old 01-09-2011
Administrator
Delete my post please!
# 6  
Old 01-10-2011
It doesn't have to do with not know or maybe it does. A question I have is why would you want to setup your connection this way? If you are going to allow a device to open ports as needed then why do you need a firewall?

I would suggest you setup a firewall to allow the ports you need to pass and forget about random ports opening.

As to your firewall rule above, if you are going to allow any IP Address then the rule should look like this:

Code:
/sbin/iptables -I INPUT -p tcp --dport 21 -j ACCEPT

I would highly suggest that you start using STATEFUL packet filtering. You can take a look at the following Tutorial for information.
# 7  
Old 01-10-2011
is not working !!! ,I tried ... ubuntu local open ports just do not pass and through my router .. understand?

---------- Post updated at 03:55 PM ---------- Previous update was at 03:50 PM ----------

you know the utorrent from windows? is opening automatic ports ...upnp ,but ubuntu is not using the upnp ,is not working UPnP Smilie
i have the router and 3 pc in my home ,one from 3 is the server ,my server has the 192.168.1.68 ip and mine i have 192.168.64 ,i have to opent the ports from router for the ip 192.168.1.68 to work out on internet ,if i`m not opening these port from router is not working from out ,thx

---------- Post updated at 03:56 PM ---------- Previous update was at 03:55 PM ----------

sorry for my bad eng.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Vim help.txt automatically open every time I open vi

Hi Friends, Every I try to open a vi window, vim help.txt automatically opens evertime. After doing ZZ or :q! also the same page opens automatically. How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue. Thanks... (3 Replies)
Discussion started by: sudiptabhaskar
3 Replies

2. UNIX for Beginners Questions & Answers

Vim help.txt automatically open every time I open vi

Hi Friends, Every I try to open a vi window vim help.txt automatically opens evertime. After doing ZZ or :q! also the same page opens automatically. How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue. Thanks... (1 Reply)
Discussion started by: sudiptabhaskar
1 Replies

3. IP Networking

Discussion at work, would a router work pluging a cable in wan1 and lan1?

hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view situation a router, with linux of some sort, dhcp client requesting for ip in wan1 (as usual with wan ports) dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies

4. IP Networking

How to create Local IPv6 and IPv4 networks by using ubuntu server as router

Hi, I have two Cent OS Linux systems and one Ubuntu OS system contains two Ethernet Cards. I need to create two networks by using Ubuntu sys as router. One network need to configure in IPv4 addresses and another network should configure in IPv6 addresses. Please help me how to configure two... (0 Replies)
Discussion started by: hanuma614
0 Replies

5. Red Hat

How to open terminal automatically.

hi, I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout I does not know how to add my... (0 Replies)
Discussion started by: mypass
0 Replies

6. IP Networking

Open Suse Router

Hello I am having some issues doing to routing I have 4 network cards and one is connected to a linksys router with everything turned off to give us a static ip to use for the gateway out to the internet. Hear is what we have We have eth2 with ip address of 192.168.1.2 / sub 255.255.255.0... (0 Replies)
Discussion started by: psutliff-una
0 Replies

7. UNIX for Dummies Questions & Answers

Remote Unix printing to my WinXP works with no router. How can I make it work through my router?

I set up remote printing on a clients Unix server to my Windows XP USB printer. My USB printer is connected directly to my PC (no print server and no network input on printer). With my Win XP PC connected to my cable modem (without the router), i can do lp -dhp842c /etc/hosts and it prints. I... (7 Replies)
Discussion started by: jmhohne
7 Replies

8. UNIX for Dummies Questions & Answers

ubuntu 9.04 router question

Hello I am new to Ubuntu and I have a quick question about router settings. When I connect directly to my cable Internet ubuntu works fine. But when I connect it to my router I can't get connectivity. I am using ubuntu 9.04 and am using D-link DI-604 router. I have reset both my router and modem... (0 Replies)
Discussion started by: jae99
0 Replies

9. Shell Programming and Scripting

Script to automatically check ports in shell?

Good day, I'm new to linux environment...Is there any scripts available for me to check ports (lets say port 80 and 21) through shell with just a single commandline? Any response is very much appreciated.. thanks (4 Replies)
Discussion started by: arsonist
4 Replies

10. Shell Programming and Scripting

automatically open

Hi I am trying to write a script to automatically use a predefined program to open a file according to its extension... But I don't know how to pass "programeta" ... :confused: while ]; do case $1 in -pdf ) programeta="kpdf" shift 1 ;; ... (1 Reply)
Discussion started by: pau
1 Replies
Login or Register to Ask a Question