Networking Forums

Networking Forums > Computer Networking > Linux Networking > Masquerade port forwarding problem - please HELP

Reply
Thread Tools Display Modes

Masquerade port forwarding problem - please HELP

 
 
bpforte@gmail.com
Guest
Posts: n/a

 
      08-07-2006, 01:56 AM
I have debian 2.6.8-3-386, and recently I replaced my netgar router
with debian ipmasq & dnsmasq. Sharing Internet working fine but I have
problem with port forwarding. I try to forward ssh port to 192.168.0.9,
I went through different websites, different iptables rules, and so on,
but nothing work for me ... and I have no idea what else I can/should
try ... I have to mention that I'm beginner ... PLEASE HELP

My iptables configuration:

debian:/home# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
LOG all -- 127.0.0.0/8 anywhere LOG level
warning
ACCEPT all -- anywhere 255.255.255.255
ACCEPT all -- 192.168.0.0/24 anywhere
ACCEPT !tcp -- anywhere BASE-ADDRESS.MCAST.NET/4
LOG all -- 192.168.0.0/24 anywhere LOG level
warning
ACCEPT all -- anywhere 255.255.255.255
ACCEPT all -- anywhere c-67-173-142-211.hsd1.il.net
ACCEPT all -- anywhere 255.255.255.255
LOG all -- anywhere anywhere LOG level
warning

Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state
RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere state NEW
ACCEPT tcp -- anywhere 192.168.0.9 tcp
dpt:ssh state NEW
ACCEPT tcp -- anywhere anywhere tcp
dpt:ssh

Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere 255.255.255.255
ACCEPT all -- anywhere 192.168.0.0/24
ACCEPT !tcp -- anywhere BASE-ADDRESS.MCAST.NET/4
LOG all -- anywhere 192.168.0.0/24 LOG level
warning
ACCEPT all -- anywhere 255.255.255.255
ACCEPT all -- c-67-173-142-211.hsd1.il.net anywhere
ACCEPT all -- 255.255.255.255 anywhere
LOG all -- anywhere anywhere LOG level
warning
debian:/home# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp
dpt:ssh to:192.168.0.9
DNAT tcp -- anywhere anywhere tcp
dpt:ssh to:192.168.0.9:22
ACCEPT all -- anywhere anywhere

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
debian:/home#

thx...Bartek

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
port forwarding problem zikester Windows Networking 1 04-28-2008 11:52 PM
NAT Problem Port Forwarding Kotowski Windows Networking 8 09-20-2005 05:52 PM
Yet another port forwarding problem (port80) GX Linux Networking 2 05-18-2004 06:17 AM
Small port forwarding problem Craig Kadziolka Linux Networking 0 04-14-2004 08:07 PM
Port Forwarding problem Brian Peiris Windows Networking 3 01-26-2004 05:14 AM



1 2 3 4 5 6 7 8 9 10 11