Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Linux


CentOS 5 Networking :: Use Webmin To Set Up Port Forwarding/NAT On A Dual-NIC Centos 5.3 Box?

Can anyone here point me to a walk-through or discussion of how to use Webmin to set up port forwarding/NAT on a dual-NIC Centos 5.3 box? The layout will be simple:

Internet --- NIC1 [CentOS Box] NIC2 --- Switch to other PCs

We have a BUNCH of exposed services that are on special ports -- for example, to connect to one machine, you go in with [IP_Address]:12000, and to connect to another, [IP_Address]:12002, etc., etc. We're currently using OpenSuse 10.3 on this box, and YaST makes this criminally easy (you give it the incoming port number and the destination IP/port numbers and it just works). But OpenSuse 10.3 is nearing EOL, we're buying a new machine, and I'd like to use CentOS on the new one.

I've read the sparse Webmin documentation in their Wiki, and it leads one to believe that you simply insert a "NAT" rule. But there's obviously something they're leaving out. I *am* opening the ports in the firewall. But when I log in to [IP_Address]:port, it just times out. The port forwarding never occurs. The test in this case is SSH, and I know that SSHD is working properly because I can log into that machine just fine from another PC on the same internal subnet.

View 8 Replies (Posted: 2009/8/31 19:32)

Sponsored Links:

Related Forum Messages For Linux category:
Networking :: Configure Port Forwarding Using Webmin Web Interface?
How to configure Port Forwarding using Webmin Web Interface? Example: forward to

Posted: 02-07-2010, 01:43 AM

View 3 Replies!   View Related
CentOS 5 :: Can't Do Port Forwarding ?
I did local apache server at internal ip and i wanna to do port forwarding to enter to it by my external ip address ?

Posted: 2011/3/5 2:56

View 4 Replies!   View Related
Networking :: Shorewall: Port Forwarding Port Is Closed Even After Forwarding?
I have just set up shorewall on my router running Arch Linux. The external network is on eth0 and the internal network on eth1.I have set it up for masquerading and that works fine and I can open ports to the firewall. But I'm having trouble with port forwarding to my internal machines.The problem I have is that when port 22350 is forwarded to on my local network, checking the port with nmap from a remote computer gives me:

22350/tcp closed unknown


Posted: 12-12-2009, 10:49 PM

View 2 Replies!   View Related
CentOS 5 Networking :: Unable To Port 8080 On CentOS VPS Server
i am not able to port 8080 on my CentOS VPS server.I have followed all the instuctions as mentioned on iptables wiki page.Also I am able to telnet my ip address and port number, But can not access from browser.

Posted: 2011/5/30 16:35

View 6 Replies!   View Related
CentOS 5 Networking :: Connect Centos 5.5 Using Ethernet Port To ADSL Broadband Modem Which Is Configured In PPPoe Mode?
Pl can anyone guide me to connect centos 5.5 using ethernet port to ADSL Broadband modem which is configured in PPPoe mode?

Posted: 2011/2/10 6:20

View 19 Replies!   View Related
Server :: Unifying Permissions Between Two Servers - CentOS - Webmin/CentOs - Cpanel - And Rsync
I have two servers, both running CentOS, but one running Cpanel as the control panel and the other running Webmin.

I would like to sync the web folders using rsync. However, when I sync the files from the Cpanel host the permissions look as follows:


But that doesn't work on the Webmin server which needs the following:


It seems the Cpanel install has the group as 'nobody' whilst webmin has it the same as the file owner. I can fix this by running:


But as the file transfers will be frequent, I don't want the files to be inaccessible until chown is run.

So, what I really want to know is - how can I change things on the 'webmin' server so that files with ownership owner:nobody will run?

Posted: 01-01-2010, 12:47 PM

View 1 Replies!   View Related
CentOS 5 Networking :: How To Open Port 22 On Centos
we are going to install ASTERISK remotely, hence the port 22 in the server has to be open ,Can somebody reply me with exact commands?I tried these commands and got these results

Command : cat /etc/services | grep xxx
Result : No Such file or directory
Command :netstat -nan | grep 22


Posted: 2009/12/26 1:29

View 4 Replies!   View Related
CentOS 5 Networking :: IP Forwarding Is Not Working
I'm trying to set up my CentOS 5 box as a gateway for my home network.I've set up dhcp on my internet interface (eth0) and dhcpd on my LAN interface (eth1).I can browse the internet from my CentOS 5 box.I can ping the CentOS 5 box from my LAN.However, I can't browse the internet from my LAN.I've enabled IP forwarding in /etc/sysctl.conf and I've disabled my firewall. I've saved these changes and rebooted. Again, no internet browsing from my LAN.

Posted: 2009/4/1 8:13

View 2 Replies!   View Related
Networking :: IP Forwarding Not Working On Centos Server
I am setting up a new server with 2 nics installed. Nic0 goes to the firewall and nic1 goes to the internal engineering network.

Problem is Ip forwarding is not working!

Server Name - slick
Firewall Name - gateone
engineering node - crooked

Routing on slick:

From crooked ( which is inside the server (slick) with an ip address of xx.xx.221.249 the only way I can ping or anything outside of the firewall ( gateone) is to turn on IPtables with this configuration:

I don't want to use IPtables. I need the ip forwarding to work.

Posted: 01-18-2010, 07:55 PM

View 6 Replies!   View Related
CentOS 5 Networking :: Stuck Enabling Ip Forwarding?
I'm running Centos 2.6.18-53.1.13.el5 in a VM. Currently I'm studying for my RHCT.I'm trying to enable IP forwarding so I edited this line in the /etc/sysctl.conf:

# Controls IP packet forwarding
net.ipv4.ip_forward = 1
Then I ran sysctl -p


Posted: 2009/3/26 1:54

View 4 Replies!   View Related
Ubuntu Networking :: Error - Remote Port Forwarding Failed For Listen Port 5500
When I use the following command:

ssh user@ssh_server -L 5500:localhost:5500 -p 22

everything works fine. I can log in, and local port forwarding is done. Otherwise when I use the command:

ssh user@ssh_server -R 5500:localhost:5500 -p 22

I get an error "remote port forwarding failed for listen port 5500". However when I try remote port forwarding in WinXP by use of putty there is no problem...

Posted: August 7th, 2010

View 2 Replies!   View Related
Networking :: Iptables - Port Forwarding To Blocked Port?
I have a mail server on which I would like to block port 25 on my eth0 for everyone except our external spam filter. the problem is that I want our users to be able to connect via port 10025 which is forwarded to port 25, which then is blocked...

Posted: 03-25-2010, 03:11 AM

View 2 Replies!   View Related
Ubuntu Networking :: Port Forwarding Through A Specific Port?
I want to set my ip as static and port forward it through a specific port can anyone help me with this im using ubuntu 10 with 64 bit OS

Posted: July 14th, 2011

View 1 Replies!   View Related
Networking :: Setup Port Forwarding Of Port 1000 To Ip
I had to add them to my firewall script when I installed openvpn on my dd-wrt router:

iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
iptables -I INPUT -i tun0 -j REJECT
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE

what should I add/change to set up port forwarding of port 1000 to ip also how to get the answer sent by follow the same route used by the data received through port forwarding.

Posted: 10-24-2010, 11:40 AM

View 1 Replies!   View Related
CentOS 5 Networking :: Forwarding HTTP Request To A Internal Server?
i am forwarding HTTP request to a internal server, it is quiet successful but access logs donot show the ip of the external m/c. Rather it shows the ip of the machine on which i have enabled port forwarding.

Posted: 2011/8/11 9:08

View 2 Replies!   View Related
CentOS 5 Networking :: IP Forwarding Disables When Rebooting Network Service / Stop It To Do So?
I have recently installed Centos 5.4 on a server with 3 network cards. I am trying to enable IP forwarding which has been successful by executing the following command:

echo 1 > /proc/sys/net/ipv4/ip_forward

I tried to make this permanent by adding net.ipv4.conf.default.forwarding=1 to the /etc/sysctl.conf file.

When I restart the network service I get the following code...

Posted: 2009/11/30 6:30

View 2 Replies!   View Related
Networking :: IP And Port Forwarding?
I have debian sarge.howto forward IP traffic from port 3128 on the local machine to the remote maschine port 3128 ?I mean if I try telnet localhost 3128, should be forwarded automatically to the remote machine

Posted: 11-01-2008, 10:50 AM

View 2 Replies!   View Related
Networking :: Port Forwarding In Router For Wol?
I have the wake on lan option enabled on my debian computer. If i wake it by sending:

-mac adres
-internal ip in my home network
-port 7

It all works fine, but when i try to do it from outside my network and change the ip address to the router adress it wont go on. I have also opened the port 7 in my router.

Posted: 03-04-2009, 10:37 AM

View 6 Replies!   View Related
Networking :: Port Forwarding 80 To LAN (Web Server)
I have two PC's, one with slackware and one with arch, and I am trying to access the web server from the archlinux machine but i haven't manage to do that. The archlinux machine is connect to the internet via the slackware machine via a crossover cable:
internet > eth0 (pc1) and ppp0 (the PPPoE connection, pc1) > eth1 (pc1) > eth0 (pc2)

ifconfig eth1 netmask
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i ppp0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth1 -o ppp0 -j ACCEPT

ifconfig eth0 netmask
ifconfig eth0 up
route add default gw eth0
/etc/resolv.conf (The same DNS as the first PC)

And now the internet is working and on the archlinux machine, but I am not able to access the web server from LAN with a public IP. I tried many iptables port forwarding commands but none worked.

Posted: 02-03-2010, 10:11 AM

View 14 Replies!   View Related
Networking :: How To Configure Port Forwarding
I have my mail application running on xxxx port in IPv6 and IPv4 enviornment on Linux machine (RHEL 5).I want to forward IPv4 request comming from windows client

Posted: 03-23-2011, 02:59 AM

View 2 Replies!   View Related
Networking :: SSH Dynamic Port Forwarding
I've setup dynamic port forwarding using Putty, SSH and Firefox.All works well when visiting normal websites (servers listening at port 80). But why can't I visit https websites?Nothing seems to be happening when I visit those.

Posted: 01-15-2010, 06:57 AM

View 2 Replies!   View Related
Networking :: Iptables Not Port Forwarding?
I have a CentOS box which is Internet Facing. It has 3 LAN's connected to it which are for virtual machines.

I want to port forward port 445 to a machine on one of the LAN interfaces. I have tried various ways to get it done, but still cannot access that port from the interface. I definately know device hosting port 445 is live, as I can ping it from the CentOS box and use lynx to access it! (It's a web server)

iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 445 -j DNAT --to-destination

Posted: 08-14-2010, 03:06 PM

View 6 Replies!   View Related
Networking :: Port Forwarding With IPTables?
I have a server running debian squeeze and kvm to virtualize a Windoze box. It's setup to use NAT. This is because of limits on the network by the admin and unfortunately, there isn't a way to get around this.

Posted: 05-06-2011, 06:27 AM

View 1 Replies!   View Related
Networking :: Prerouting - Port Forwarding ?
Have router running Fedora 11 with eth0 - Internet (with static IP) and eth1 - LAN using IP

I want to contact over RDP my Windows 7 machine, so I added to iptables:

But this won't work.

Posted: 07-24-2010, 07:26 AM

View 9 Replies!   View Related
Copyright 2005-08, All rights reserved