OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • International Forums »
  • Chinese - 中文 »
  • opnsense端口转发异常
« previous next »
  • Print
Pages: [1]

Author Topic: opnsense端口转发异常  (Read 26318 times)

testccc

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
opnsense端口转发异常
« on: July 11, 2022, 06:05:32 pm »
opnsense作为默认网关, A, B, C 3个机器在同一个lan下, 其中B为openwrt

- A配置网关为B
- B, C配置网关为opnsense

端口转发配置
- opnsense(4000)->A(22)
- opnsense(4001)->C(22)

按上面的配置, 在opnsense开启端口转发后, 外部网络可以正常访问C的端口, 但是无法访问到A的端口, 有没有大佬知道这个是个什么问题?

同样的配置, 用其他路由替代opnsense作为默认网关是ok的。
Logged

deddey

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 2
    • View Profile
Re: opnsense端口转发异常
« Reply #1 on: August 11, 2022, 08:43:02 am »
opnsense > A 是正常。
A > opnsense 不正常。
按你的设定,A的网关是B,上边的这条应该是 A > B > opnsense.
opnsense会糊涂,不知道在和谁对话

Logged

testccc

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: opnsense端口转发异常
« Reply #2 on: August 11, 2022, 06:54:54 pm »
啊,回来看了下,没想到还有回复。
主要的一个问题是用其他的系统,如ikuai,openwrt这些都是正常的,就opnsense下不知道怎么配置, 之前在英文板块下也问了下, 给的答复没帮助。太难了。。。https://forum.opnsense.org/index.php?topic=29308.0
Logged

elanfuture

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: opnsense端口转发异常
« Reply #3 on: August 10, 2023, 05:35:06 pm »
A机和默认网管opn之间还隔着个网关B呢,你应该再到openwrt里去配置端口转发
- opnsense(4000)->A(22) 变成
opnsense(4000) -> B openwrt(xxxx) -> A(22)
Logged

slwl

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: opnsense端口转发异常
« Reply #4 on: October 05, 2023, 04:30:21 pm »
大兄弟,你的问题解决了吗,我也是同样的情况,就是不知道如何设置
Logged

wuping

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: opnsense端口转发异常
« Reply #5 on: November 04, 2024, 06:01:25 pm »
你们应该是做的旁路由,需要加一条 静态路由表做跳转的
Logged

23winla2

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
    • 23winla1
Re: opnsense端口转发异常
« Reply #6 on: November 16, 2024, 03:59:14 am »
viet nam number 1
Logged
Khám Phá 23win: Trải Nghiệm Casino Trực Tuyến Đỉnh Cao.Website: https://23win.la/ https://www.facebook.com/23winla/
https://www.youtube.com/@23winla
https://x.com/23winla
https://www.pinterest.com/23winla/
https://gravatar.com/23winla
https://www.reddit.com/user/23winla/

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • International Forums »
  • Chinese - 中文 »
  • opnsense端口转发异常
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2